Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/context.py @ 4638:3c7fc13c4bfa
Fix issue 589: "undelete" sequence leads to crash.
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Wed, 20 Jun 2007 00:10:21 +0200 |
parents | b6146466b92a |
children | 178778ca648f |
line wrap: on
line diff
--- a/mercurial/context.py +++ b/mercurial/context.py @@ -292,11 +292,10 @@ class filectx(object): # sort by revision (per file) which is a topological order visit = [] - files.reverse() for f in files: - fn = [(n._filerev, n) for n in needed.keys() if n._path == f] - fn.sort() + fn = [(n.rev(), n) for n in needed.keys() if n._path == f] visit.extend(fn) + visit.sort() hist = {} for r, f in visit: