41
42
self.diff_writer = colordiff.DiffWriter(sys.stdout, False)
42
43
self.manager = prepare_shelf.ShelfManager.for_tree(work_tree)
46
48
def from_args(klass, revision=None, all=False):
47
49
tree, path = workingtree.WorkingTree.open_containing('.')
48
50
target_tree = builtins._get_one_revision_tree('shelf2', revision,
50
return klass(tree, target_tree, path, all)
52
return klass(tree, target_tree, path, all, all)
53
55
creator = prepare_shelf.ShelfCreator(self.work_tree, self.target_tree)