hgkw/keyword.py
changeset 384 482c91f8c230
parent 383 af4c062c4b41
child 385 e93c63004ec2
equal deleted inserted replaced
383:af4c062c4b41 384:482c91f8c230
   410     Wraps commit to overwrite configured files with updated
   410     Wraps commit to overwrite configured files with updated
   411     keyword substitutions.
   411     keyword substitutions.
   412     This is done for local repos only, and only if there are
   412     This is done for local repos only, and only if there are
   413     files configured at all for keyword substitution.'''
   413     files configured at all for keyword substitution.'''
   414 
   414 
   415     if not repo.local() or '.hg' in repo.root.split('/'):
   415     try:
   416         return
   416         if (not repo.local() or '.hg' in repo.root.split('/')
       
   417             or repo._url.startswith('bundle:')):
       
   418             return
       
   419     except AttributeError:
       
   420         pass
   417 
   421 
   418     hgcmd, func, args, opts, cmdopts = dispatch._parse(ui, sys.argv[1:])
   422     hgcmd, func, args, opts, cmdopts = dispatch._parse(ui, sys.argv[1:])
   419     if hgcmd in nokwcommands.split():
   423     if hgcmd in nokwcommands.split():
   420         return
   424         return
   421 
   425