# HG changeset patch # User Thomas Arendsen Hein # Date 1125067048 -7200 # Node ID fae1204603dc0e539f30320f018dc9ba6d327859 # Parent ea878688221e739b94d13847a9a12a36ab31a15f Fixed zero-padded filenames with %r if there is a longer number in the middle. e.g. with: hg export -o ../%r.patch 99 100 98 diff -r ea878688221e -r fae1204603dc mercurial/commands.py --- a/mercurial/commands.py Fri Aug 26 15:26:44 2005 +0200 +++ b/mercurial/commands.py Fri Aug 26 16:37:28 2005 +0200 @@ -779,7 +779,7 @@ seqno = 0 revs = list(revrange(ui, repo, changesets)) total = len(revs) - revwidth = max(len(revs[0]), len(revs[-1])) + revwidth = max(map(len, revs)) ui.note(len(revs) > 1 and "Exporting patches:\n" or "Exporting patch:\n") for cset in revs: seqno += 1