comparison mercurial/cmdutil.py @ 22215:525cde5d954d

obsmarker: add a `flags` method We introduce a proper method to access the flag information.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 15 Aug 2014 09:41:30 -0700
parents f1debbcd71cd
children 908c76e84ec5
comparison
equal deleted inserted replaced
22214:3f93eff1de57 22215:525cde5d954d
1182 To be used by debug function.""" 1182 To be used by debug function."""
1183 ui.write(hex(marker.precnode())) 1183 ui.write(hex(marker.precnode()))
1184 for repl in marker.succnodes(): 1184 for repl in marker.succnodes():
1185 ui.write(' ') 1185 ui.write(' ')
1186 ui.write(hex(repl)) 1186 ui.write(hex(repl))
1187 ui.write(' %X ' % marker._data[2]) 1187 ui.write(' %X ' % marker.flags())
1188 ui.write('{%s}' % (', '.join('%r: %r' % t for t in 1188 ui.write('{%s}' % (', '.join('%r: %r' % t for t in
1189 sorted(marker.metadata().items())))) 1189 sorted(marker.metadata().items()))))
1190 ui.write('\n') 1190 ui.write('\n')
1191 1191
1192 def finddate(ui, repo, date): 1192 def finddate(ui, repo, date):