equal
deleted
inserted
replaced
521 ui.note('hg -R "%s" ci -m "%s"\n' % (tmpdir, msg)) |
521 ui.note('hg -R "%s" ci -m "%s"\n' % (tmpdir, msg)) |
522 repo.commit(text=msg) |
522 repo.commit(text=msg) |
523 fmt = ui.verbose and ' in %s' % path or '' |
523 fmt = ui.verbose and ' in %s' % path or '' |
524 ui.status(_('\n\t%s keywords expanded%s\n') % (kwstatus, fmt)) |
524 ui.status(_('\n\t%s keywords expanded%s\n') % (kwstatus, fmt)) |
525 ui.write(repo.wread(fn)) |
525 ui.write(repo.wread(fn)) |
526 ui.debug(_('\nremoving temporary repository %s\n') % tmpdir) |
526 ui.debug('\nremoving temporary repository %s\n' % tmpdir) |
527 shutil.rmtree(tmpdir, ignore_errors=True) |
527 shutil.rmtree(tmpdir, ignore_errors=True) |
528 |
528 |
529 def expand(ui, repo, *pats, **opts): |
529 def expand(ui, repo, *pats, **opts): |
530 '''expand keywords in the working directory |
530 '''expand keywords in the working directory |
531 |
531 |