mq: use the new checklocalchange in the strip command
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 25 Sep 2013 19:32:53 +0200
changeset 19815 378567bf9f74
parent 19814 4495c6a272e0
child 19816 d5ec50e8604b
mq: use the new checklocalchange in the strip command The strip command never use the `refresh` argument. So we can use the function we just extracted.
hgext/mq.py
--- a/hgext/mq.py	Wed Sep 25 12:43:14 2013 +0200
+++ b/hgext/mq.py	Wed Sep 25 19:32:53 2013 +0200
@@ -1102,7 +1102,7 @@
             lock = repo.lock()
 
             if update:
-                self.checklocalchanges(repo, force=force, refresh=False)
+                checklocalchanges(repo, force=force)
                 urev = self.qparents(repo, revs[0])
                 hg.clean(repo, urev)
                 repo.dirstate.write()