Show More
@@ -1178,7 +1178,7 b' def debugindex(ui, repo, file_=None, **o' | |||||
1178 | def debugindexdot(ui, repo, file_=None, **opts): |
|
1178 | def debugindexdot(ui, repo, file_=None, **opts): | |
1179 | """dump an index DAG as a graphviz dot file""" |
|
1179 | """dump an index DAG as a graphviz dot file""" | |
1180 | opts = pycompat.byteskwargs(opts) |
|
1180 | opts = pycompat.byteskwargs(opts) | |
1181 |
r = cmdutil.openre |
|
1181 | r = cmdutil.openstorage(repo, 'debugindexdot', file_, opts) | |
1182 | ui.write(("digraph G {\n")) |
|
1182 | ui.write(("digraph G {\n")) | |
1183 | for i in r: |
|
1183 | for i in r: | |
1184 | node = r.node(i) |
|
1184 | node = r.node(i) |
@@ -13,6 +13,24 b' Create a short file history including a ' | |||||
13 | $ HGMERGE=true hg merge -q |
|
13 | $ HGMERGE=true hg merge -q | |
14 | $ hg ci -m merge -d '3 0' |
|
14 | $ hg ci -m merge -d '3 0' | |
15 |
|
15 | |||
|
16 | $ hg debugindexdot -c | |||
|
17 | digraph G { | |||
|
18 | -1 -> 0 | |||
|
19 | 0 -> 1 | |||
|
20 | 0 -> 2 | |||
|
21 | 2 -> 3 | |||
|
22 | 1 -> 3 | |||
|
23 | } | |||
|
24 | ||||
|
25 | $ hg debugindexdot -m | |||
|
26 | digraph G { | |||
|
27 | -1 -> 0 | |||
|
28 | 0 -> 1 | |||
|
29 | 0 -> 2 | |||
|
30 | 2 -> 3 | |||
|
31 | 1 -> 3 | |||
|
32 | } | |||
|
33 | ||||
16 | $ hg debugindexdot a |
|
34 | $ hg debugindexdot a | |
17 | digraph G { |
|
35 | digraph G { | |
18 | -1 -> 0 |
|
36 | -1 -> 0 |
@@ -491,7 +491,7 b' and its ancestor by overriding "repo._fi' | |||||
491 | > EOF |
|
491 | > EOF | |
492 | $ hg debugsetparents 17 17 |
|
492 | $ hg debugsetparents 17 17 | |
493 | $ hg --config extensions.legacyrepo=../legacyrepo.py commit -m "baz:2" |
|
493 | $ hg --config extensions.legacyrepo=../legacyrepo.py commit -m "baz:2" | |
494 |
$ hg debugindexdot |
|
494 | $ hg debugindexdot baz | |
495 | digraph G { |
|
495 | digraph G { | |
496 | -1 -> 0 |
|
496 | -1 -> 0 | |
497 | 0 -> 1 |
|
497 | 0 -> 1 | |
@@ -523,7 +523,7 b' and its ancestor by overriding "repo._fi' | |||||
523 | > EOF |
|
523 | > EOF | |
524 | $ hg debugsetparents 19 18 |
|
524 | $ hg debugsetparents 19 18 | |
525 | $ hg --config extensions.legacyrepo=../legacyrepo.py commit -m "baz:4" |
|
525 | $ hg --config extensions.legacyrepo=../legacyrepo.py commit -m "baz:4" | |
526 |
$ hg debugindexdot |
|
526 | $ hg debugindexdot baz | |
527 | digraph G { |
|
527 | digraph G { | |
528 | -1 -> 0 |
|
528 | -1 -> 0 | |
529 | 0 -> 1 |
|
529 | 0 -> 1 |
General Comments 0
You need to be logged in to leave comments.
Login now