comparison 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
comparison
equal deleted inserted replaced
22259:2e6f03a193f9 22260:2229d757802d
1201 ui.write(hex(marker.precnode())) 1201 ui.write(hex(marker.precnode()))
1202 for repl in marker.succnodes(): 1202 for repl in marker.succnodes():
1203 ui.write(' ') 1203 ui.write(' ')
1204 ui.write(hex(repl)) 1204 ui.write(hex(repl))
1205 ui.write(' %X ' % marker.flags()) 1205 ui.write(' %X ' % marker.flags())
1206 parents = marker.parentnodes()
1207 if parents is not None:
1208 ui.write('{%s} ' % ', '.join(hex(p) for p in parents))
1206 ui.write('(%s) ' % util.datestr(marker.date())) 1209 ui.write('(%s) ' % util.datestr(marker.date()))
1207 ui.write('{%s}' % (', '.join('%r: %r' % t for t in 1210 ui.write('{%s}' % (', '.join('%r: %r' % t for t in
1208 sorted(marker.metadata().items()) 1211 sorted(marker.metadata().items())
1209 if t[0] != 'date'))) 1212 if t[0] != 'date')))
1210 ui.write('\n') 1213 ui.write('\n')