Mercurial > hgsubversion
diff push_cmd.py @ 163:fdc249cd1a0a
Combine sort and reverse.
author | Martin Geisler <mg@daimi.au.dk> |
---|---|
date | Tue, 30 Dec 2008 19:24:16 -0600 |
parents | 1fde85a10f9e |
children | b77a4caaf77b |
line wrap: on
line diff
--- a/push_cmd.py +++ b/push_cmd.py @@ -212,8 +212,7 @@ def commit_from_rev(ui, repo, rev_ctx, h # Now we are done with files, we can prune deleted directories # against themselves: ignore a/b if a/ is already removed deleteddirs2 = list(deleteddirs) - deleteddirs2.sort() - deleteddirs2.reverse() + deleteddirs2.sort(reverse=True) for d in deleteddirs2: pos = d.rfind('/') if pos >= 0 and d[:pos] in deleteddirs: