diff -r 316cd5b0c940 -r 0d27502a804c mercurial/patch.py --- a/mercurial/patch.py Fri Dec 15 11:14:55 2006 -0800 +++ b/mercurial/patch.py Fri Dec 15 18:38:09 2006 -0800 @@ -625,7 +625,7 @@ '''export changesets as hg patches.''' total = len(revs) - revwidth = max(map(len, revs)) + revwidth = max([len(str(rev)) for rev in revs]) def single(node, seqno, fp): parents = [p for p in repo.changelog.parents(node) if p != nullid] @@ -654,8 +654,8 @@ if fp not in (sys.stdout, repo.ui): fp.close() - for seqno, cset in enumerate(revs): - single(cset, seqno, fp) + for seqno, rev in enumerate(revs): + single(repo.lookup(rev), seqno+1, fp) def diffstat(patchlines): fd, name = tempfile.mkstemp(prefix="hg-patchbomb-", suffix=".txt")