Show More
@@ -355,6 +355,9 b' def showchangessincelatesttag(repo, ctx,' | |||||
355 | def showmanifest(**args): |
|
355 | def showmanifest(**args): | |
356 | repo, ctx, templ = args['repo'], args['ctx'], args['templ'] |
|
356 | repo, ctx, templ = args['repo'], args['ctx'], args['templ'] | |
357 | mnode = ctx.manifestnode() |
|
357 | mnode = ctx.manifestnode() | |
|
358 | if mnode is None: | |||
|
359 | # just avoid crash, we might want to use the 'ff...' hash in future | |||
|
360 | return | |||
358 | args = args.copy() |
|
361 | args = args.copy() | |
359 | args.update({'rev': repo.manifest.rev(mnode), 'node': hex(mnode)}) |
|
362 | args.update({'rev': repo.manifest.rev(mnode), 'node': hex(mnode)}) | |
360 | return templ('manifest', **args) |
|
363 | return templ('manifest', **args) |
@@ -51,6 +51,12 b' Second branch starting at nullrev:' | |||||
51 | 8 t |
|
51 | 8 t | |
52 | 7 f |
|
52 | 7 f | |
53 |
|
53 | |||
|
54 | Some keywords are invalid for working-directory revision, but they should | |||
|
55 | never cause crash: | |||
|
56 | ||||
|
57 | $ hg log -r 'wdir()' -T '{manifest}\n' | |||
|
58 | ||||
|
59 | ||||
54 | Quoting for ui.logtemplate |
|
60 | Quoting for ui.logtemplate | |
55 |
|
61 | |||
56 | $ hg tip --config "ui.logtemplate={rev}\n" |
|
62 | $ hg tip --config "ui.logtemplate={rev}\n" |
General Comments 0
You need to be logged in to leave comments.
Login now