Mercurial > hg
comparison mercurial/debugcommands.py @ 33148:4e30168d7939
obsutil: move the 'marker' class to the new modules
We have a new 'obsutil' module now. We move high level utility there to bring
'obsolete.py' back to a more reasonable size.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 27 Jun 2017 01:51:40 +0200 |
parents | 4f49810a1011 |
children | a14e2e7f7d1f |
comparison
equal
deleted
inserted
replaced
33147:07439e9f245b | 33148:4e30168d7939 |
---|---|
305 msg = "%sversion: %s (%d bytes)\n" | 305 msg = "%sversion: %s (%d bytes)\n" |
306 msg %= indent_string, version, len(data) | 306 msg %= indent_string, version, len(data) |
307 ui.write(msg) | 307 ui.write(msg) |
308 fm = ui.formatter('debugobsolete', opts) | 308 fm = ui.formatter('debugobsolete', opts) |
309 for rawmarker in sorted(markers): | 309 for rawmarker in sorted(markers): |
310 m = obsolete.marker(None, rawmarker) | 310 m = obsutil.marker(None, rawmarker) |
311 fm.startitem() | 311 fm.startitem() |
312 fm.plain(indent_string) | 312 fm.plain(indent_string) |
313 cmdutil.showmarker(fm, m) | 313 cmdutil.showmarker(fm, m) |
314 fm.end() | 314 fm.end() |
315 | 315 |