hgkw/keyword.py
changeset 517 3fef0be9f550
parent 509 16b690351c0d
child 522 1dc08efd8e81
equal deleted inserted replaced
516:0107b6de1a35 517:3fef0be9f550
   425     if file matches user configuration.
   425     if file matches user configuration.
   426     Wraps commit to overwrite configured files with updated
   426     Wraps commit to overwrite configured files with updated
   427     keyword substitutions.
   427     keyword substitutions.
   428     Monkeypatches patch and webcommands.'''
   428     Monkeypatches patch and webcommands.'''
   429 
   429 
   430     try:
   430     if (not hasattr(repo, 'dirstate') or not kwtools['inc']
   431         if (not repo.local() or not kwtools['inc']
   431         or kwtools['hgcmd'] in nokwcommands.split()
   432             or kwtools['hgcmd'] in nokwcommands.split()
   432         or '.hg' in util.splitpath(repo.root)):
   433             or '.hg' in util.splitpath(repo.root)
   433         return
   434             or repo._url.startswith('bundle:')):
       
   435             return
       
   436     except AttributeError:
       
   437         pass
       
   438 
   434 
   439     kwtools['templater'] = kwt = kwtemplater(ui, repo)
   435     kwtools['templater'] = kwt = kwtemplater(ui, repo)
   440 
   436 
   441     class kwrepo(repo.__class__):
   437     class kwrepo(repo.__class__):
   442         def file(self, f):
   438         def file(self, f):