Show More
@@ -974,6 +974,19 b' def show_changeset(ui, repo, opts, buffe' | |||||
974 | t.use_template(tmpl) |
|
974 | t.use_template(tmpl) | |
975 | return t |
|
975 | return t | |
976 |
|
976 | |||
|
977 | def showmarker(ui, marker): | |||
|
978 | """utility function to display obsolescence marker in a readable way | |||
|
979 | ||||
|
980 | To be used by debug function.""" | |||
|
981 | ui.write(hex(marker.precnode())) | |||
|
982 | for repl in marker.succnodes(): | |||
|
983 | ui.write(' ') | |||
|
984 | ui.write(hex(repl)) | |||
|
985 | ui.write(' %X ' % marker._data[2]) | |||
|
986 | ui.write('{%s}' % (', '.join('%r: %r' % t for t in | |||
|
987 | sorted(marker.metadata().items())))) | |||
|
988 | ui.write('\n') | |||
|
989 | ||||
977 | def finddate(ui, repo, date): |
|
990 | def finddate(ui, repo, date): | |
978 | """Find the tipmost changeset that matches the given date spec""" |
|
991 | """Find the tipmost changeset that matches the given date spec""" | |
979 |
|
992 |
@@ -2227,14 +2227,7 b' def debugobsolete(ui, repo, precursor=No' | |||||
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')), |
General Comments 0
You need to be logged in to leave comments.
Login now