# HG changeset patch # User Martin Geisler # Date 1247002248 -7200 # Node ID 77324df822e2dedd46f38b5cd7c2c9c20107c084 # Parent 38b5d5e0efaba61390346ec0d0499479be7df2d1 extdiff: fix indentation and use gettext diff -r 38b5d5e0efab -r 77324df822e2 hgext/extdiff.py --- a/hgext/extdiff.py Tue Jul 07 17:26:20 2009 +0200 +++ b/hgext/extdiff.py Tue Jul 07 23:30:48 2009 +0200 @@ -211,18 +211,17 @@ '''use closure to save diff command to use''' def mydiff(ui, repo, *pats, **opts): return dodiff(ui, repo, path, diffopts, pats, opts) - mydiff.__doc__ = '''use %(path)s to diff repository (or selected files) + mydiff.__doc__ = _('''\ +use %(path)s to diff repository (or selected files) - Show differences between revisions for the specified - files, using the %(path)s program. + Show differences between revisions for the specified files, using the + %(path)s program. - When two revision arguments are given, then changes are - shown between those revisions. If only one revision is - specified then that revision is compared to the working - directory, and, when no revisions are specified, the - working directory files are compared to its parent.''' % { - 'path': util.uirepr(path), - } + When two revision arguments are given, then changes are shown between + those revisions. If only one revision is specified then that revision is + compared to the working directory, and, when no revisions are specified, + the working directory files are compared to its parent.\ +''') % dict(path=util.uirepr(path)) return mydiff cmdtable[cmd] = (save(cmd, path, diffopts), cmdtable['extdiff'][1][1:], diff -r 38b5d5e0efab -r 77324df822e2 tests/test-extdiff.out --- a/tests/test-extdiff.out Tue Jul 07 17:26:20 2009 +0200 +++ b/tests/test-extdiff.out Tue Jul 07 23:30:48 2009 +0200 @@ -7,14 +7,13 @@ use 'echo' to diff repository (or selected files) - Show differences between revisions for the specified - files, using the 'echo' program. + Show differences between revisions for the specified files, using the + 'echo' program. - When two revision arguments are given, then changes are - shown between those revisions. If only one revision is - specified then that revision is compared to the working - directory, and, when no revisions are specified, the - working directory files are compared to its parent. + When two revision arguments are given, then changes are shown between + those revisions. If only one revision is specified then that revision is + compared to the working directory, and, when no revisions are specified, + the working directory files are compared to its parent. options: