# HG changeset patch # User Christian Ebert # Date 1266468905 -3600 # Node ID 57f8b7f021e88cdc3b35fb1b6bef8856d69b49fe # Parent 2305f9255f0435ff6a7cc861c6249b7b7401ce80 Mark improved demo commit message for translation s/config/configuration/ Inside the quoted command put the message in single quotes in case the translation contains apostrophes. diff -r 2305f9255f04 -r 57f8b7f021e8 hgkw/keyword.py --- a/hgkw/keyword.py Thu Mar 11 18:49:41 2010 +0100 +++ b/hgkw/keyword.py Thu Feb 18 05:55:05 2010 +0100 @@ -289,7 +289,6 @@ for k, v in sorted(items): ui.write('%s = %s\n' % (k, v)) - msg = 'hg keyword config and expansion example' fn = 'demo.txt' branchname = 'demobranch' tmpdir = tempfile.mkdtemp('', 'kwdemo.') @@ -350,7 +349,8 @@ if name.split('.', 1)[0].find('commit') > -1: repo.ui.setconfig('hooks', name, '') ui.note(_('unhooked all commit hooks\n')) - ui.note('hg -R "%s" ci -m "%s"\n' % (tmpdir, msg)) + msg = _('hg keyword configuration and expansion example') + ui.note("hg -R '%s' ci -m '%s'\n" % (tmpdir, msg)) repo.commit(text=msg) ui.status(_('\n\tkeywords expanded\n')) ui.write(repo.wread(fn)) diff -r 2305f9255f04 -r 57f8b7f021e8 tests/test-keyword.out --- a/tests/test-keyword.out Thu Mar 11 18:49:41 2010 +0100 +++ b/tests/test-keyword.out Thu Feb 18 05:55:05 2010 +0100 @@ -213,7 +213,7 @@ demo.txt = [keywordmaps] Xinfo = {author}: {desc} -$Xinfo: test: hg keyword config and expansion example $ +$Xinfo: test: hg keyword configuration and expansion example $ % cat expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ do not process $Id: