Show More
@@ -165,7 +165,7 b' def svnutcdate(text):' | |||
|
165 | 165 | return util.datestr((util.parsedate(text)[0], 0), '%Y-%m-%d %H:%M:%SZ') |
|
166 | 166 | |
|
167 | 167 | # make keyword tools accessible |
|
168 |
kwtools = { |
|
|
168 | kwtools = {'hgcmd': ''} | |
|
169 | 169 | |
|
170 | 170 | def _defaultkwmaps(ui): |
|
171 | 171 | '''Returns default keywordmaps according to keywordset configuration.''' |
@@ -385,7 +385,7 b' def _kwfwrite(ui, repo, expand, *pats, *' | |||
|
385 | 385 | wctx = repo[None] |
|
386 | 386 | if len(wctx.parents()) > 1: |
|
387 | 387 | raise error.Abort(_('outstanding uncommitted merge')) |
|
388 | kwt = kwtools['templater'] | |
|
388 | kwt = getattr(repo, '_keywordkwt', None) | |
|
389 | 389 | with repo.wlock(): |
|
390 | 390 | status = _status(ui, repo, wctx, kwt, *pats, **opts) |
|
391 | 391 | if status.modified or status.added or status.removed or status.deleted: |
@@ -529,7 +529,7 b' def files(ui, repo, *pats, **opts):' | |||
|
529 | 529 | I = ignored |
|
530 | 530 | i = ignored (not tracked) |
|
531 | 531 | ''' |
|
532 | kwt = kwtools['templater'] | |
|
532 | kwt = getattr(repo, '_keywordkwt', None) | |
|
533 | 533 | wctx = repo[None] |
|
534 | 534 | status = _status(ui, repo, wctx, kwt, *pats, **opts) |
|
535 | 535 | if pats: |
@@ -614,7 +614,7 b' def reposetup(ui, repo):' | |||
|
614 | 614 | if not inc: |
|
615 | 615 | return |
|
616 | 616 | |
|
617 |
|
|
|
617 | kwt = kwtemplater(ui, repo, inc, exc) | |
|
618 | 618 | |
|
619 | 619 | class kwrepo(repo.__class__): |
|
620 | 620 | def file(self, f): |
General Comments 0
You need to be logged in to leave comments.
Login now