Mercurial > hg-stable
diff hgext/graphlog.py @ 9180:efe990445b33
merge with -stable
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sun, 19 Jul 2009 21:15:40 +0200 |
parents | 864b719ff1ad d12e9b40e444 |
children | 061eeb602354 |
line wrap: on
line diff
--- a/hgext/graphlog.py Sun Jul 19 18:44:20 2009 +0200 +++ b/hgext/graphlog.py Sun Jul 19 21:15:40 2009 +0200 @@ -22,9 +22,11 @@ ASCIIDATA = 'ASC' -def asciiformat(ui, repo, revdag, opts): +def asciiformat(ui, repo, revdag, opts, parentrepo=None): """formats a changelog DAG walk for ASCII output""" - showparents = [ctx.node() for ctx in repo[None].parents()] + if parentrepo is None: + parentrepo = repo + showparents = [ctx.node() for ctx in parentrepo[None].parents()] displayer = show_changeset(ui, repo, opts, buffered=True) for (id, type, ctx, parentids) in revdag: if type != graphmod.CHANGESET: @@ -339,7 +341,7 @@ chlist = other.changelog.nodesbetween(incoming, revs)[0] revdag = graphrevs(other, chlist, opts) - fmtdag = asciiformat(ui, repo, revdag, opts) + fmtdag = asciiformat(ui, other, revdag, opts, parentrepo=repo) ascii(ui, asciiedges(fmtdag)) finally: