Show More
@@ -348,8 +348,8 b' def demo(ui, repo, *args, **opts):' | |||||
348 | ui.note(_('unhooked all commit hooks\n')) |
|
348 | ui.note(_('unhooked all commit hooks\n')) | |
349 | ui.note('hg -R "%s" ci -m "%s"\n' % (tmpdir, msg)) |
|
349 | ui.note('hg -R "%s" ci -m "%s"\n' % (tmpdir, msg)) | |
350 | repo.commit(text=msg) |
|
350 | repo.commit(text=msg) | |
351 |
f |
|
351 | fmt = ui.verbose and ' in %s' % path or '' | |
352 |
demostatus('%s keywords expanded%s' % (kwstatus, f |
|
352 | demostatus('%s keywords expanded%s' % (kwstatus, fmt)) | |
353 | ui.write(repo.wread(fn)) |
|
353 | ui.write(repo.wread(fn)) | |
354 | ui.debug(_('\nremoving temporary repo %s\n') % tmpdir) |
|
354 | ui.debug(_('\nremoving temporary repo %s\n') % tmpdir) | |
355 | shutil.rmtree(tmpdir, ignore_errors=True) |
|
355 | shutil.rmtree(tmpdir, ignore_errors=True) | |
@@ -382,9 +382,9 b' def files(ui, repo, *pats, **opts):' | |||||
382 | if opts.get('all') or opts.get('ignore'): |
|
382 | if opts.get('all') or opts.get('ignore'): | |
383 | kwfstats += (('I', [f for f in files if f not in kwfiles]),) |
|
383 | kwfstats += (('I', [f for f in files if f not in kwfiles]),) | |
384 | for char, filenames in kwfstats: |
|
384 | for char, filenames in kwfstats: | |
385 |
f |
|
385 | fmt = (opts.get('all') or ui.verbose) and '%s %%s\n' % char or '%s\n' | |
386 | for f in filenames: |
|
386 | for f in filenames: | |
387 |
ui.write(f |
|
387 | ui.write(fmt % repo.pathto(f, cwd)) | |
388 |
|
388 | |||
389 | def shrink(ui, repo, *pats, **opts): |
|
389 | def shrink(ui, repo, *pats, **opts): | |
390 | '''revert expanded keywords in working directory |
|
390 | '''revert expanded keywords in working directory |
General Comments 0
You need to be logged in to leave comments.
Login now