Show More
@@ -1214,8 +1214,14 b' def debugdag(ui, repo, file_=None, *revs' | |||||
1214 | ui.write(line) |
|
1214 | ui.write(line) | |
1215 | ui.write("\n") |
|
1215 | ui.write("\n") | |
1216 |
|
1216 | |||
1217 | def debugdata(ui, file_, rev): |
|
1217 | def debugdata(ui, repo, file_, rev): | |
1218 | """dump the contents of a data file revision""" |
|
1218 | """dump the contents of a data file revision""" | |
|
1219 | r = None | |||
|
1220 | if repo: | |||
|
1221 | filelog = repo.file(file_) | |||
|
1222 | if len(filelog): | |||
|
1223 | r = filelog | |||
|
1224 | if not r: | |||
1219 | r = revlog.revlog(util.opener(os.getcwd(), audit=False), file_[:-2] + ".i") |
|
1225 | r = revlog.revlog(util.opener(os.getcwd(), audit=False), file_[:-2] + ".i") | |
1220 | try: |
|
1226 | try: | |
1221 | ui.write(r.revision(r.lookup(rev))) |
|
1227 | ui.write(r.revision(r.lookup(rev))) | |
@@ -4476,7 +4482,8 b' table = {' | |||||
4476 | "version": (version_, []), |
|
4482 | "version": (version_, []), | |
4477 | } |
|
4483 | } | |
4478 |
|
4484 | |||
4479 |
norepo = ("clone init version help debugcommands debugcomplete |
|
4485 | norepo = ("clone init version help debugcommands debugcomplete" | |
4480 | " debugindex debugindexdot debugdate debuginstall debugfsinfo" |
|
4486 | " debugindex debugindexdot debugdate debuginstall debugfsinfo" | |
4481 | " debugpushkey") |
|
4487 | " debugpushkey") | |
4482 |
optionalrepo = ("identify paths serve showconfig debugancestor debugdag" |
|
4488 | optionalrepo = ("identify paths serve showconfig debugancestor debugdag" | |
|
4489 | " debugdata") |
General Comments 0
You need to be logged in to leave comments.
Login now