Show More
@@ -80,6 +80,9 b' def outputprettygraph(orig, ui, graph, *' | |||||
80 | return orig(ui, graph, *args, **kwargs) |
|
80 | return orig(ui, graph, *args, **kwargs) | |
81 |
|
81 | |||
82 | def extsetup(ui): |
|
82 | def extsetup(ui): | |
|
83 | if ui.plain('graph'): | |||
|
84 | return | |||
|
85 | ||||
83 | if encoding.encoding != 'UTF-8': |
|
86 | if encoding.encoding != 'UTF-8': | |
84 | ui.warn(_('beautifygraph: unsupported encoding, UTF-8 required\n')) |
|
87 | ui.warn(_('beautifygraph: unsupported encoding, UTF-8 required\n')) | |
85 | return |
|
88 | return | |
@@ -89,8 +92,5 b' def extsetup(ui):' | |||||
89 | 'monospace narrow text required\n')) |
|
92 | 'monospace narrow text required\n')) | |
90 | return |
|
93 | return | |
91 |
|
94 | |||
92 | if ui.plain('graph'): |
|
|||
93 | return |
|
|||
94 |
|
||||
95 | extensions.wrapfunction(graphmod, 'outputgraph', outputprettygraph) |
|
95 | extensions.wrapfunction(graphmod, 'outputgraph', outputprettygraph) | |
96 | extensions.wrapfunction(templatekw, 'getgraphnode', getprettygraphnode) |
|
96 | extensions.wrapfunction(templatekw, 'getgraphnode', getprettygraphnode) |
@@ -673,13 +673,11 b' def newheads(repo, heads, roots):' | |||||
673 | rev = cl.nodemap.get |
|
673 | rev = cl.nodemap.get | |
674 | if not roots: |
|
674 | if not roots: | |
675 | return heads |
|
675 | return heads | |
676 |
if not heads or heads == [null |
|
676 | if not heads or heads == [nullid]: | |
677 | return [] |
|
677 | return [] | |
678 | # The logic operated on revisions, convert arguments early for convenience |
|
678 | # The logic operated on revisions, convert arguments early for convenience | |
679 | new_heads = set(rev(n) for n in heads if n != nullid) |
|
679 | new_heads = set(rev(n) for n in heads if n != nullid) | |
680 | roots = [rev(n) for n in roots] |
|
680 | roots = [rev(n) for n in roots] | |
681 | if not heads or not roots: |
|
|||
682 | return heads |
|
|||
683 | # compute the area we need to remove |
|
681 | # compute the area we need to remove | |
684 | affected_zone = repo.revs("(%ld::%ld)", roots, new_heads) |
|
682 | affected_zone = repo.revs("(%ld::%ld)", roots, new_heads) | |
685 | # heads in the area are no longer heads |
|
683 | # heads in the area are no longer heads |
General Comments 0
You need to be logged in to leave comments.
Login now