Show More
@@ -22,9 +22,11 b' from mercurial import hg, url, util, gra' | |||||
22 |
|
22 | |||
23 | ASCIIDATA = 'ASC' |
|
23 | ASCIIDATA = 'ASC' | |
24 |
|
24 | |||
25 | def asciiformat(ui, repo, revdag, opts): |
|
25 | def asciiformat(ui, repo, revdag, opts, parentrepo=None): | |
26 | """formats a changelog DAG walk for ASCII output""" |
|
26 | """formats a changelog DAG walk for ASCII output""" | |
27 | showparents = [ctx.node() for ctx in repo[None].parents()] |
|
27 | if parentrepo is None: | |
|
28 | parentrepo = repo | |||
|
29 | showparents = [ctx.node() for ctx in parentrepo[None].parents()] | |||
28 | displayer = show_changeset(ui, repo, opts, buffered=True) |
|
30 | displayer = show_changeset(ui, repo, opts, buffered=True) | |
29 | for (id, type, ctx, parentids) in revdag: |
|
31 | for (id, type, ctx, parentids) in revdag: | |
30 | if type != graphmod.CHANGESET: |
|
32 | if type != graphmod.CHANGESET: | |
@@ -341,7 +343,7 b' def gincoming(ui, repo, source="default"' | |||||
341 |
|
343 | |||
342 | chlist = other.changelog.nodesbetween(incoming, revs)[0] |
|
344 | chlist = other.changelog.nodesbetween(incoming, revs)[0] | |
343 | revdag = graphrevs(other, chlist, opts) |
|
345 | revdag = graphrevs(other, chlist, opts) | |
344 |
fmtdag = asciiformat(ui, r |
|
346 | fmtdag = asciiformat(ui, other, revdag, opts, parentrepo=repo) | |
345 | ascii(ui, asciiedges(fmtdag)) |
|
347 | ascii(ui, asciiedges(fmtdag)) | |
346 |
|
348 | |||
347 | finally: |
|
349 | finally: |
@@ -169,6 +169,6 b' echo % incoming and outgoing' | |||||
169 | cd .. |
|
169 | cd .. | |
170 | hg clone -U -r31 repo repo2 |
|
170 | hg clone -U -r31 repo repo2 | |
171 | cd repo2 |
|
171 | cd repo2 | |
172 |
hg incoming - |
|
172 | hg incoming --graph ../repo | |
173 | cd .. |
|
173 | cd .. | |
174 | hg -R repo outgoing --graph repo2 |
|
174 | hg -R repo outgoing --graph repo2 |
@@ -581,13 +581,33 b' adding changesets' | |||||
581 | adding manifests |
|
581 | adding manifests | |
582 | adding file changes |
|
582 | adding file changes | |
583 | added 31 changesets with 31 changes to 1 files |
|
583 | added 31 changesets with 31 changes to 1 files | |
584 | o 34:fea3ac5810e0 |
|
584 | comparing with ../repo | |
585 | | |
|
585 | searching for changes | |
586 | | o 33:68608f5145f9 |
|
586 | o changeset: 34:fea3ac5810e0 | |
|
587 | | tag: tip | |||
|
588 | | parent: 32:d06dffa21a31 | |||
|
589 | | user: test | |||
|
590 | | date: Thu Jan 01 00:00:34 1970 +0000 | |||
|
591 | | summary: (34) head | |||
587 | | |
|
592 | | | |
588 | o 32:d06dffa21a31 |
|
593 | | o changeset: 33:68608f5145f9 | |
|
594 | | parent: 18:1aa84d96232a | |||
|
595 | | user: test | |||
|
596 | | date: Thu Jan 01 00:00:33 1970 +0000 | |||
|
597 | | summary: (33) head | |||
589 | | |
|
598 | | | |
590 | o 27:886ed638191b |
|
599 | o changeset: 32:d06dffa21a31 | |
|
600 | | parent: 27:886ed638191b | |||
|
601 | | parent: 31:621d83e11f67 | |||
|
602 | | user: test | |||
|
603 | | date: Thu Jan 01 00:00:32 1970 +0000 | |||
|
604 | | summary: (32) expand | |||
|
605 | | | |||
|
606 | o changeset: 27:886ed638191b | |||
|
607 | parent: 21:d42a756af44d | |||
|
608 | user: test | |||
|
609 | date: Thu Jan 01 00:00:27 1970 +0000 | |||
|
610 | summary: (27) collapse | |||
591 |
|
611 | |||
592 | comparing with repo2 |
|
612 | comparing with repo2 | |
593 | searching for changes |
|
613 | searching for changes |
General Comments 0
You need to be logged in to leave comments.
Login now