diff mercurial/dirstate.py @ 13233:0b30e6148ec5 stable

subrepo: do not report known files inside repositories as unknown
author Oleg Stepanov <oleg.stepanov@jetbrains.com>
date Tue, 04 Jan 2011 03:53:11 -0800
parents e255a5dc29e6
children 0935ff767285 22167be007ed
line wrap: on
line diff
--- a/mercurial/dirstate.py	Wed Jan 05 10:57:52 2011 +0100
+++ b/mercurial/dirstate.py	Tue Jan 04 03:53:11 2011 -0800
@@ -503,7 +503,7 @@
         i, j = 0, 0
         while i < len(files) and j < len(subrepos):
             subpath = subrepos[j] + "/"
-            if not files[i].startswith(subpath):
+            if files[i] < subpath:
                 i += 1
                 continue
             while files and files[i].startswith(subpath):