Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 22260:2229d757802d
debugobsolete: display parents information from markers
Now that we have a new field, we need a way to visualize it.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 18 Aug 2014 17:17:23 -0700 |
parents | f3200bf460a8 |
children | ffaaa80fa724 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Mon Aug 18 17:14:27 2014 -0700 +++ b/mercurial/cmdutil.py Mon Aug 18 17:17:23 2014 -0700 @@ -1203,6 +1203,9 @@ ui.write(' ') ui.write(hex(repl)) ui.write(' %X ' % marker.flags()) + parents = marker.parentnodes() + if parents is not None: + ui.write('{%s} ' % ', '.join(hex(p) for p in parents)) ui.write('(%s) ' % util.datestr(marker.date())) ui.write('{%s}' % (', '.join('%r: %r' % t for t in sorted(marker.metadata().items())