hgext/gpg.py
changeset 36607 c6061cadb400
parent 36034 f3d8f61c425d
child 36653 2f7a3c90c0d7
equal deleted inserted replaced
36606:4de15c54e59f 36607:c6061cadb400
    19     node as hgnode,
    19     node as hgnode,
    20     pycompat,
    20     pycompat,
    21     registrar,
    21     registrar,
    22     util,
    22     util,
    23 )
    23 )
       
    24 from mercurial.utils import dateutil
    24 
    25 
    25 cmdtable = {}
    26 cmdtable = {}
    26 command = registrar.command(cmdtable)
    27 command = registrar.command(cmdtable)
    27 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
    28 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
    28 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
    29 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
   256     sigver = "0"
   257     sigver = "0"
   257     sigmessage = ""
   258     sigmessage = ""
   258 
   259 
   259     date = opts.get('date')
   260     date = opts.get('date')
   260     if date:
   261     if date:
   261         opts['date'] = util.parsedate(date)
   262         opts['date'] = dateutil.parsedate(date)
   262 
   263 
   263     if revs:
   264     if revs:
   264         nodes = [repo.lookup(n) for n in revs]
   265         nodes = [repo.lookup(n) for n in revs]
   265     else:
   266     else:
   266         nodes = [node for node in repo.dirstate.parents()
   267         nodes = [node for node in repo.dirstate.parents()