# HG changeset patch # User Christian Ebert # Date 1245924030 -7200 # Node ID 3b4d5045a920e2bf3820c65516e03bc2981d9ce2 # Parent 38c937c7289dc00c99409a3ea136c16e8f3e0e1c# Parent 527257649f2050ee7d49c4a837561c4a89c1a346 (stable) merge diff -r 38c937c7289d -r 3b4d5045a920 hgkw/keyword.py --- a/hgkw/keyword.py Wed Jun 24 13:42:34 2009 +0200 +++ b/hgkw/keyword.py Thu Jun 25 12:00:30 2009 +0200 @@ -281,9 +281,6 @@ Override current keyword template maps with "default" option. ''' - def demostatus(stat): - ui.status(_('\n\t%s\n') % stat) - def demoitems(section, items): ui.write('[%s]\n' % section) for k, v in items: @@ -323,7 +320,7 @@ if k.endswith('keyword'): extension = '%s = %s' % (k, v) break - demostatus('config using %s keyword template maps' % kwstatus) + ui.status(_('\n\tconfig using %s keyword template maps\n') % kwstatus) ui.write('[extensions]\n%s\n' % extension) demoitems('keyword', ui.configitems('keyword')) demoitems('keywordmaps', kwmaps.iteritems()) @@ -346,7 +343,7 @@ ui.note('hg -R "%s" ci -m "%s"\n' % (tmpdir, msg)) repo.commit(text=msg) fmt = ui.verbose and ' in %s' % path or '' - demostatus('%s keywords expanded%s' % (kwstatus, fmt)) + ui.status(_('\n\t%s keywords expanded%s\n') % (kwstatus, fmt)) ui.write(repo.wread(fn)) ui.debug(_('\nremoving temporary repository %s\n') % tmpdir) shutil.rmtree(tmpdir, ignore_errors=True)