comparison hgsubversion/svncommands.py @ 1572:51e105c7f0c6

compathacks: deal with removed aliases in mercurial.util
author Augie Fackler <raf@durin42.com>
date Sun, 27 May 2018 00:29:38 -0400
parents ae572c9be4e6
children 5d8603f080c5
comparison
equal deleted inserted replaced
1571:f8ca09a97492 1572:51e105c7f0c6
7 from mercurial import hg 7 from mercurial import hg
8 from mercurial import node 8 from mercurial import node
9 from mercurial import util as hgutil 9 from mercurial import util as hgutil
10 from mercurial import error 10 from mercurial import error
11 11
12 import compathacks
12 import svnwrap 13 import svnwrap
13 import svnrepo 14 import svnrepo
14 import util 15 import util
15 import svnexternals 16 import svnexternals
16 import verify 17 import verify
401 'uuid': meta.uuid, 402 'uuid': meta.uuid,
402 'url': url, 403 'url': url,
403 'author': author, 404 'author': author,
404 'revision': r, 405 'revision': r,
405 # TODO I'd like to format this to the user's local TZ if possible 406 # TODO I'd like to format this to the user's local TZ if possible
406 'date': hgutil.datestr(parent.date(), 407 'date': compathacks.datestr(
407 '%Y-%m-%d %H:%M:%S %1%2 (%a, %d %b %Y)') 408 parent.date(),
409 '%Y-%m-%d %H:%M:%S %1%2 (%a, %d %b %Y)')
408 }) 410 })
409 411
410 412
411 def listauthors(ui, args, authors=None, **opts): 413 def listauthors(ui, args, authors=None, **opts):
412 """list all authors in a Subversion repository 414 """list all authors in a Subversion repository