mercurial/localrepo.py
changeset 11669 c47cb3193c53
parent 11665 1f7f8bc45240
child 11698 9df481f8036d
--- a/mercurial/localrepo.py	Sat Jul 24 17:23:08 2010 +0200
+++ b/mercurial/localrepo.py	Sun Jul 25 10:05:38 2010 +0900
@@ -1064,11 +1064,11 @@
                     else:
                         fixup.append(f)
 
-                if listclean:
-                    clean += fixup
-
                 # update dirstate for files that are actually clean
                 if fixup:
+                    if listclean:
+                        clean += fixup
+
                     try:
                         # updating the dirstate is optional
                         # so we don't wait on the lock