hgkw/keyword.py
changeset 251 b37f2f065a9c
parent 250 b28a2832cba4
child 252 001902b60bdd
equal deleted inserted replaced
250:b28a2832cba4 251:b37f2f065a9c
   444     repo.commit(text=msg)
   444     repo.commit(text=msg)
   445     pathinfo = ('', ' in %s' % path)[ui.verbose]
   445     pathinfo = ('', ' in %s' % path)[ui.verbose]
   446     _demostatus('%s keywords expanded%s' % (kwstatus, pathinfo))
   446     _demostatus('%s keywords expanded%s' % (kwstatus, pathinfo))
   447     ui.write(repo.wread(fn))
   447     ui.write(repo.wread(fn))
   448     ui.debug(_('\nremoving temporary repo %s\n') % tmpdir)
   448     ui.debug(_('\nremoving temporary repo %s\n') % tmpdir)
   449     shutil.rmtree(tmpdir)
   449     shutil.rmtree(tmpdir, ignore_errors=True)
   450 
   450 
   451 
   451 
   452 def reposetup(ui, repo):
   452 def reposetup(ui, repo):
   453     '''Sets up repo as kwrepo for keyword substitution.
   453     '''Sets up repo as kwrepo for keyword substitution.
   454     Overrides file method to return kwfilelog instead of filelog
   454     Overrides file method to return kwfilelog instead of filelog