Mercurial > public > mercurial-scm > hg-stable
diff mercurial/dirstate.py @ 13339:22167be007ed stable
subrepo: fix pruning of subrepo filenames in dirstate (issue2619)
author | trbs <trbs@trbs.net> |
---|---|
date | Fri, 04 Feb 2011 09:05:23 +0100 |
parents | 0b30e6148ec5 |
children | 69e69b131458 |
line wrap: on
line diff
--- a/mercurial/dirstate.py Tue Feb 01 17:30:13 2011 -0600 +++ b/mercurial/dirstate.py Fri Feb 04 09:05:23 2011 +0100 @@ -506,7 +506,7 @@ if files[i] < subpath: i += 1 continue - while files and files[i].startswith(subpath): + while i < len(files) and files[i].startswith(subpath): del files[i] j += 1