extdiff: fix indentation and use gettext
authorMartin Geisler <mg@lazybytes.net>
Tue, 07 Jul 2009 23:30:48 +0200
changeset 9050 77324df822e2
parent 9049 38b5d5e0efab
child 9051 f8e25885d975
extdiff: fix indentation and use gettext
hgext/extdiff.py
tests/test-extdiff.out
--- 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:],
--- 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: