Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
20469:6b4c789d618d | 20470:78f4c2b7052f |
---|---|
2225 tr.release() | 2225 tr.release() |
2226 finally: | 2226 finally: |
2227 l.release() | 2227 l.release() |
2228 else: | 2228 else: |
2229 for m in obsolete.allmarkers(repo): | 2229 for m in obsolete.allmarkers(repo): |
2230 ui.write(hex(m.precnode())) | 2230 cmdutil.showmarker(ui, m) |
2231 for repl in m.succnodes(): | |
2232 ui.write(' ') | |
2233 ui.write(hex(repl)) | |
2234 ui.write(' %X ' % m._data[2]) | |
2235 ui.write('{%s}' % (', '.join('%r: %r' % t for t in | |
2236 sorted(m.metadata().items())))) | |
2237 ui.write('\n') | |
2238 | 2231 |
2239 @command('debugpathcomplete', | 2232 @command('debugpathcomplete', |
2240 [('f', 'full', None, _('complete an entire path')), | 2233 [('f', 'full', None, _('complete an entire path')), |
2241 ('n', 'normal', None, _('show only normal files')), | 2234 ('n', 'normal', None, _('show only normal files')), |
2242 ('a', 'added', None, _('show only added files')), | 2235 ('a', 'added', None, _('show only added files')), |