Show More
@@ -221,8 +221,14 b' def showchildren(**args):' | |||||
221 | childrevs = ['%d:%s' % (cctx, cctx) for cctx in ctx.children()] |
|
221 | childrevs = ['%d:%s' % (cctx, cctx) for cctx in ctx.children()] | |
222 | return showlist('children', childrevs, element='child', **args) |
|
222 | return showlist('children', childrevs, element='child', **args) | |
223 |
|
223 | |||
|
224 | # Deprecated, but kept alive for help generation a purpose. | |||
224 | def showcurrentbookmark(**args): |
|
225 | def showcurrentbookmark(**args): | |
225 | """:currentbookmark: String. The active bookmark, if it is |
|
226 | """:currentbookmark: String. The active bookmark, if it is | |
|
227 | associated with the changeset (DEPRECATED)""" | |||
|
228 | return showactivebookmark(**args) | |||
|
229 | ||||
|
230 | def showactivebookmark(**args): | |||
|
231 | """:activetbookmark: String. The active bookmark, if it is | |||
226 | associated with the changeset""" |
|
232 | associated with the changeset""" | |
227 | import bookmarks as bookmarks # to avoid circular import issues |
|
233 | import bookmarks as bookmarks # to avoid circular import issues | |
228 | repo = args['repo'] |
|
234 | repo = args['repo'] | |
@@ -418,12 +424,14 b' def showtags(**args):' | |||||
418 | # cache - a cache dictionary for the whole templater run |
|
424 | # cache - a cache dictionary for the whole templater run | |
419 | # revcache - a cache dictionary for the current revision |
|
425 | # revcache - a cache dictionary for the current revision | |
420 | keywords = { |
|
426 | keywords = { | |
|
427 | 'activebookmark': showactivebookmark, | |||
421 | 'author': showauthor, |
|
428 | 'author': showauthor, | |
422 | 'bisect': showbisect, |
|
429 | 'bisect': showbisect, | |
423 | 'branch': showbranch, |
|
430 | 'branch': showbranch, | |
424 | 'branches': showbranches, |
|
431 | 'branches': showbranches, | |
425 | 'bookmarks': showbookmarks, |
|
432 | 'bookmarks': showbookmarks, | |
426 | 'children': showchildren, |
|
433 | 'children': showchildren, | |
|
434 | # currentbookmark is deprecated | |||
427 | 'currentbookmark': showcurrentbookmark, |
|
435 | 'currentbookmark': showcurrentbookmark, | |
428 | 'date': showdate, |
|
436 | 'date': showdate, | |
429 | 'desc': showdescription, |
|
437 | 'desc': showdescription, |
General Comments 0
You need to be logged in to leave comments.
Login now