Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 20470:78f4c2b7052f
debugobsolete: extract marker display in a dedicated function
We want to be able to reuse and extend it from other function or
extension while working on markers exchange.
This changeset is pure core movement.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 11 Feb 2014 16:30:23 -0800 |
parents | 466707047c8d |
children | 19b1c62cee1c |
line wrap: on
line diff
--- a/mercurial/commands.py Thu Jan 30 16:12:49 2014 -0800 +++ b/mercurial/commands.py Tue Feb 11 16:30:23 2014 -0800 @@ -2227,14 +2227,7 @@ l.release() else: for m in obsolete.allmarkers(repo): - ui.write(hex(m.precnode())) - for repl in m.succnodes(): - ui.write(' ') - ui.write(hex(repl)) - ui.write(' %X ' % m._data[2]) - ui.write('{%s}' % (', '.join('%r: %r' % t for t in - sorted(m.metadata().items())))) - ui.write('\n') + cmdutil.showmarker(ui, m) @command('debugpathcomplete', [('f', 'full', None, _('complete an entire path')),