hgkw/keyword.py
branchkwmap-templates
changeset 159 28fd5b5eb3ad
parent 158 900a9e4d7f82
child 160 e45d804d28dd
equal deleted inserted replaced
158:900a9e4d7f82 159:28fd5b5eb3ad
    83      Source: /path/to/basename,v
    83      Source: /path/to/basename,v
    84      Id: basename,v csetid %Y/%m/%d %H:%M:%S username
    84      Id: basename,v csetid %Y/%m/%d %H:%M:%S username
    85      Header: /path/to/basename,v csetid %Y/%m/%d %H:%M:%S username
    85      Header: /path/to/basename,v csetid %Y/%m/%d %H:%M:%S username
    86 '''
    86 '''
    87 
    87 
    88 try:
    88 from mercurial.i18n import gettext as _
    89     from mercurial.demandload import * # stable
    89 from mercurial import commands, fancyopts, templater, util
    90     from mercurial.i18n import gettext as _
    90 from mercurial import cmdutil, context, filelog
    91     demandload(globals(), 'mercurial:commands,fancyopts,templater,util')
    91 import os, re, sys, time
    92     demandload(globals(), 'mercurial:cmdutil,context,filelog')
       
    93     demandload(globals(), 'os re sys time')
       
    94 except ImportError:                    # demandimport
       
    95     from mercurial.i18n import _
       
    96     from mercurial import commands, fancyopts, templater, util
       
    97     from mercurial import cmdutil, context, filelog
       
    98     import os, re, sys, time
       
    99 
    92 
   100 deftemplates = {
    93 deftemplates = {
   101         'Revision': '{node|short}',
    94         'Revision': '{node|short}',
   102         'Author': '{author|user}',
    95         'Author': '{author|user}',
   103         'Date': '{date|utcdate}',
    96         'Date': '{date|utcdate}',