localrepo.status: only append stuff to the clean list if list_clean is true
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Wed, 13 Jun 2007 21:39:45 -0300
changeset 4579 e7d4ed543de5
parent 4578 eb3b7dd1e158
child 4581 4500fbe3a432
localrepo.status: only append stuff to the clean list if list_clean is true This is consistent with dirstate.status.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Wed Jun 13 21:39:45 2007 -0300
+++ b/mercurial/localrepo.py	Wed Jun 13 21:39:45 2007 -0300
@@ -951,7 +951,8 @@
                         if fcmp(f, getnode):
                             modified.append(f)
                         else:
-                            clean.append(f)
+                            if list_clean:
+                                clean.append(f)
                             if not wlock and not mywlock:
                                 mywlock = True
                                 try: