hgkw/keyword.py
branchstable
changeset 525 6028e8046c14
parent 523 062ce3b9c962
child 527 59cb740ebf83
equal deleted inserted replaced
523:062ce3b9c962 525:6028e8046c14
   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     if (not hasattr(repo, 'dirstate') or not kwtools['inc']
   430     try:
   431         or kwtools['hgcmd'] in nokwcommands.split()
   431         if (not repo.local() or not kwtools['inc']
   432         or '.hg' in util.splitpath(repo.root)):
   432             or kwtools['hgcmd'] in nokwcommands.split()
   433         return
   433             or '.hg' in util.splitpath(repo.root)
       
   434             or repo._url.startswith('bundle:')):
       
   435             return
       
   436     except AttributeError:
       
   437         pass
   434 
   438 
   435     kwtools['templater'] = kwt = kwtemplater(ui, repo)
   439     kwtools['templater'] = kwt = kwtemplater(ui, repo)
   436 
   440 
   437     class kwrepo(repo.__class__):
   441     class kwrepo(repo.__class__):
   438         def file(self, f):
   442         def file(self, f):