use workingcontext.files() to detect if the repo is unclean
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sun, 29 Oct 2006 14:18:55 +0100
changeset 3581 be61bd32046c
parent 3580 41989e55fa37
child 3582 9fb7d3a05882
use workingcontext.files() to detect if the repo is unclean
mercurial/merge.py
--- a/mercurial/merge.py	Sun Oct 29 13:08:10 2006 +0100
+++ b/mercurial/merge.py	Sun Oct 29 14:18:55 2006 +0100
@@ -392,7 +392,7 @@
             else:
                 overwrite = True
     if branchmerge and not forcemerge:
-        if wc.modified() or wc.added() or wc.removed():
+        if wc.files():
             raise util.Abort(_("outstanding uncommitted changes"))
 
     ### calculate phase