Show More
@@ -294,7 +294,6 def demo(ui, repo, *args, **opts): | |||
|
294 | 294 | for k, v in sorted(items): |
|
295 | 295 | ui.write('%s = %s\n' % (k, v)) |
|
296 | 296 | |
|
297 | msg = 'hg keyword config and expansion example' | |
|
298 | 297 | fn = 'demo.txt' |
|
299 | 298 | branchname = 'demobranch' |
|
300 | 299 | tmpdir = tempfile.mkdtemp('', 'kwdemo.') |
@@ -355,7 +354,8 def demo(ui, repo, *args, **opts): | |||
|
355 | 354 | if name.split('.', 1)[0].find('commit') > -1: |
|
356 | 355 | repo.ui.setconfig('hooks', name, '') |
|
357 | 356 | ui.note(_('unhooked all commit hooks\n')) |
|
358 | ui.note('hg -R "%s" ci -m "%s"\n' % (tmpdir, msg)) | |
|
357 | msg = _('hg keyword configuration and expansion example') | |
|
358 | ui.note("hg -R '%s' ci -m '%s'\n" % (tmpdir, msg)) | |
|
359 | 359 | repo.commit(text=msg) |
|
360 | 360 | ui.status(_('\n\tkeywords expanded\n')) |
|
361 | 361 | ui.write(repo.wread(fn)) |
@@ -213,7 +213,7 b = ignore | |||
|
213 | 213 | demo.txt = |
|
214 | 214 | [keywordmaps] |
|
215 | 215 | Xinfo = {author}: {desc} |
|
216 | $Xinfo: test: hg keyword config and expansion example $ | |
|
216 | $Xinfo: test: hg keyword configuration and expansion example $ | |
|
217 | 217 | % cat |
|
218 | 218 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
219 | 219 | do not process $Id: |
General Comments 0
You need to be logged in to leave comments.
Login now