# HG changeset patch # User Martin von Zweigbergk # Date 1535140505 25200 # Node ID 5b9f116104f9993744cf59e0c670735e1f8599b1 # Parent c9a3f7f5c0235e3ae35135818c48ec5ea006de37# Parent bd63ada7e1f838d7a579edcbd8e3c8ff7ec46a43 merge with stable diff -r c9a3f7f5c023 -r 5b9f116104f9 hgext/beautifygraph.py --- a/hgext/beautifygraph.py Fri Aug 24 10:19:31 2018 -0700 +++ b/hgext/beautifygraph.py Fri Aug 24 12:55:05 2018 -0700 @@ -80,6 +80,9 @@ return orig(ui, graph, *args, **kwargs) def extsetup(ui): + if ui.plain('graph'): + return + if encoding.encoding != 'UTF-8': ui.warn(_('beautifygraph: unsupported encoding, UTF-8 required\n')) return @@ -89,8 +92,5 @@ 'monospace narrow text required\n')) return - if ui.plain('graph'): - return - extensions.wrapfunction(graphmod, 'outputgraph', outputprettygraph) extensions.wrapfunction(templatekw, 'getgraphnode', getprettygraphnode) diff -r c9a3f7f5c023 -r 5b9f116104f9 mercurial/phases.py --- a/mercurial/phases.py Fri Aug 24 10:19:31 2018 -0700 +++ b/mercurial/phases.py Fri Aug 24 12:55:05 2018 -0700 @@ -673,13 +673,11 @@ rev = cl.nodemap.get if not roots: return heads - if not heads or heads == [nullrev]: + if not heads or heads == [nullid]: return [] # The logic operated on revisions, convert arguments early for convenience new_heads = set(rev(n) for n in heads if n != nullid) roots = [rev(n) for n in roots] - if not heads or not roots: - return heads # compute the area we need to remove affected_zone = repo.revs("(%ld::%ld)", roots, new_heads) # heads in the area are no longer heads