177
179
tree, path = workingtree.WorkingTree.open_containing(directory)
178
180
# Ensure that tree is locked for the lifetime of target_tree, as
179
181
# target tree may be reading from the same dirstate.
181
184
target_tree = builtins._get_one_revision_tree('shelf2', revision,
183
186
files = tree.safe_relpath_files(file_list)
184
187
return klass(tree, target_tree, diff_writer, all, all, files,
188
193
"""Interactively shelve the changes."""