Show More
@@ -1066,7 +1066,7 b' def export(ui, repo, *changesets, **opts' | |||||
1066 | ui.note(_('exporting patches:\n')) |
|
1066 | ui.note(_('exporting patches:\n')) | |
1067 | else: |
|
1067 | else: | |
1068 | ui.note(_('exporting patch:\n')) |
|
1068 | ui.note(_('exporting patch:\n')) | |
1069 |
patch.export(repo, |
|
1069 | patch.export(repo, revs, template=opts['output'], | |
1070 | switch_parent=opts['switch_parent'], |
|
1070 | switch_parent=opts['switch_parent'], | |
1071 | opts=patch.diffopts(ui, opts)) |
|
1071 | opts=patch.diffopts(ui, opts)) | |
1072 |
|
1072 |
@@ -626,7 +626,7 b" def export(repo, revs, template='hg-%h.p" | |||||
626 | '''export changesets as hg patches.''' |
|
626 | '''export changesets as hg patches.''' | |
627 |
|
627 | |||
628 | total = len(revs) |
|
628 | total = len(revs) | |
629 |
revwidth = max( |
|
629 | revwidth = max([len(str(rev)) for rev in revs]) | |
630 |
|
630 | |||
631 | def single(node, seqno, fp): |
|
631 | def single(node, seqno, fp): | |
632 | parents = [p for p in repo.changelog.parents(node) if p != nullid] |
|
632 | parents = [p for p in repo.changelog.parents(node) if p != nullid] | |
@@ -655,8 +655,8 b" def export(repo, revs, template='hg-%h.p" | |||||
655 | if fp not in (sys.stdout, repo.ui): |
|
655 | if fp not in (sys.stdout, repo.ui): | |
656 | fp.close() |
|
656 | fp.close() | |
657 |
|
657 | |||
658 |
for seqno, |
|
658 | for seqno, rev in enumerate(revs): | |
659 |
single( |
|
659 | single(repo.lookup(rev), seqno+1, fp) | |
660 |
|
660 | |||
661 | def diffstat(patchlines): |
|
661 | def diffstat(patchlines): | |
662 | fd, name = tempfile.mkstemp(prefix="hg-patchbomb-", suffix=".txt") |
|
662 | fd, name = tempfile.mkstemp(prefix="hg-patchbomb-", suffix=".txt") |
@@ -48,13 +48,13 b' foo-5f17a83f5fbd.patch' | |||||
48 | foo-f3acbafac161.patch |
|
48 | foo-f3acbafac161.patch | |
49 | # foo-%r.patch |
|
49 | # foo-%r.patch | |
50 | exporting patches: |
|
50 | exporting patches: | |
51 | foo-00000000000000000002.patch |
|
51 | foo-02.patch | |
52 | foo-00000000000000000003.patch |
|
52 | foo-03.patch | |
53 | foo-00000000000000000004.patch |
|
53 | foo-04.patch | |
54 | foo-00000000000000000005.patch |
|
54 | foo-05.patch | |
55 | foo-00000000000000000006.patch |
|
55 | foo-06.patch | |
56 | foo-00000000000000000007.patch |
|
56 | foo-07.patch | |
57 | foo-00000000000000000008.patch |
|
57 | foo-08.patch | |
58 | foo-00000000000000000009.patch |
|
58 | foo-09.patch | |
59 | foo-00000000000000000010.patch |
|
59 | foo-10.patch | |
60 | foo-00000000000000000011.patch |
|
60 | foo-11.patch |
General Comments 0
You need to be logged in to leave comments.
Login now