Show More
@@ -286,7 +286,7 b' def showbranch(**args):' | |||||
286 | """String. The name of the branch on which the changeset was |
|
286 | """String. The name of the branch on which the changeset was | |
287 | committed. |
|
287 | committed. | |
288 | """ |
|
288 | """ | |
289 | return args['ctx'].branch() |
|
289 | return args[r'ctx'].branch() | |
290 |
|
290 | |||
291 | @templatekeyword('branches') |
|
291 | @templatekeyword('branches') | |
292 | def showbranches(**args): |
|
292 | def showbranches(**args): | |
@@ -332,8 +332,8 b' def showcurrentbookmark(**args):' | |||||
332 | def showactivebookmark(**args): |
|
332 | def showactivebookmark(**args): | |
333 | """String. The active bookmark, if it is |
|
333 | """String. The active bookmark, if it is | |
334 | associated with the changeset""" |
|
334 | associated with the changeset""" | |
335 | active = args['repo']._activebookmark |
|
335 | active = args[r'repo']._activebookmark | |
336 | if active and active in args['ctx'].bookmarks(): |
|
336 | if active and active in args[r'ctx'].bookmarks(): | |
337 | return active |
|
337 | return active | |
338 | return '' |
|
338 | return '' | |
339 |
|
339 | |||
@@ -516,7 +516,7 b' def showchangessincelatesttag(repo, ctx,' | |||||
516 | def _showchangessincetag(repo, ctx, **args): |
|
516 | def _showchangessincetag(repo, ctx, **args): | |
517 | offset = 0 |
|
517 | offset = 0 | |
518 | revs = [ctx.rev()] |
|
518 | revs = [ctx.rev()] | |
519 | tag = args['tag'] |
|
519 | tag = args[r'tag'] | |
520 |
|
520 | |||
521 | # The only() revset doesn't currently support wdir() |
|
521 | # The only() revset doesn't currently support wdir() | |
522 | if ctx.rev() is None: |
|
522 | if ctx.rev() is None: | |
@@ -527,14 +527,14 b' def _showchangessincetag(repo, ctx, **ar' | |||||
527 |
|
527 | |||
528 | @templatekeyword('manifest') |
|
528 | @templatekeyword('manifest') | |
529 | def showmanifest(**args): |
|
529 | def showmanifest(**args): | |
530 | repo, ctx, templ = args['repo'], args['ctx'], args['templ'] |
|
530 | repo, ctx, templ = args[r'repo'], args[r'ctx'], args[r'templ'] | |
531 | mnode = ctx.manifestnode() |
|
531 | mnode = ctx.manifestnode() | |
532 | if mnode is None: |
|
532 | if mnode is None: | |
533 | # just avoid crash, we might want to use the 'ff...' hash in future |
|
533 | # just avoid crash, we might want to use the 'ff...' hash in future | |
534 | return |
|
534 | return | |
535 | args = args.copy() |
|
535 | args = args.copy() | |
536 | args.update({'rev': repo.manifestlog._revlog.rev(mnode), |
|
536 | args.update({r'rev': repo.manifestlog._revlog.rev(mnode), | |
537 | 'node': hex(mnode)}) |
|
537 | r'node': hex(mnode)}) | |
538 | return templ('manifest', **args) |
|
538 | return templ('manifest', **args) | |
539 |
|
539 | |||
540 | def shownames(namespace, **args): |
|
540 | def shownames(namespace, **args): |
General Comments 0
You need to be logged in to leave comments.
Login now