##// END OF EJS Templates
mq: avoid a (potentially expensive) repo.status(unknown=True) call
Benoit Boissinot -
r10662:e8e56d83 default
parent child Browse files
Show More
@@ -1082,11 +1082,10 b' class queue(object):'
1082 self.ui.warn(_('cleaning up working directory...'))
1082 self.ui.warn(_('cleaning up working directory...'))
1083 node = repo.dirstate.parents()[0]
1083 node = repo.dirstate.parents()[0]
1084 hg.revert(repo, node, None)
1084 hg.revert(repo, node, None)
1085 unknown = repo.status(unknown=True)[4]
1086 # only remove unknown files that we know we touched or
1085 # only remove unknown files that we know we touched or
1087 # created while patching
1086 # created while patching
1088 for f in unknown:
1087 for f in all_files:
1089 if f in all_files:
1088 if f not in repo.dirstate:
1090 util.unlink(repo.wjoin(f))
1089 util.unlink(repo.wjoin(f))
1091 self.ui.warn(_('done\n'))
1090 self.ui.warn(_('done\n'))
1092 raise
1091 raise
General Comments 0
You need to be logged in to leave comments. Login now