##// END OF EJS Templates
obsmarker: add a `flags` method...
Pierre-Yves David -
r22215:525cde5d default
parent child Browse files
Show More
@@ -1184,7 +1184,7 b' def showmarker(ui, marker):'
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')
@@ -226,6 +226,10 b' class marker(object):'
226 parts = self.metadata()['date'].split(' ')
226 parts = self.metadata()['date'].split(' ')
227 return (float(parts[0]), int(parts[1]))
227 return (float(parts[0]), int(parts[1]))
228
228
229 def flags(self):
230 """The flags field of the marker"""
231 return self._data[2]
232
229 class obsstore(object):
233 class obsstore(object):
230 """Store obsolete markers
234 """Store obsolete markers
231
235
General Comments 0
You need to be logged in to leave comments. Login now