[PATCH 15 of 17] mark strings for translation in rebase extension

Martin Geisler mg at daimi.au.dk
Sat Aug 23 15:55:31 CDT 2008


# HG changeset patch
# User Martin Geisler <mg at daimi.au.dk>
# Date 1219523218 -7200
# Node ID 8e270acaa6718de6af8fe1e0c2f72a6424909efb
# Parent  a496aa2e4f09d39ce92ef84c6501bdafaf191279
mark strings for translation in rebase extension

diff -r a496aa2e4f09 -r 8e270acaa671 hgext/rebase.py
--- a/hgext/rebase.py	Sat Aug 23 22:26:58 2008 +0200
+++ b/hgext/rebase.py	Sat Aug 23 22:26:58 2008 +0200
@@ -170,8 +170,8 @@
         state[rev] = repo[newrev].rev()
     else:
         if not collapse:
-            repo.ui.note('no changes, revision %d skipped\n' % rev)
-            repo.ui.debug('next revision set to %s\n' % p1)
+            repo.ui.note(_('no changes, revision %d skipped\n') % rev)
+            repo.ui.debug(_('next revision set to %s\n') % p1)
             skipped[rev] = True
         state[rev] = p1
 
@@ -209,7 +209,7 @@
     mqrebase = {}
     for p in repo.mq.applied:
         if repo[p.rev].rev() in state:
-            repo.ui.debug('revision %d is an mq patch (%s), finalize it.\n' %
+            repo.ui.debug(_('revision %d is an mq patch (%s), finalize it.\n') %
                                         (repo[p.rev].rev(), p.name))
             mqrebase[repo[p.rev].rev()] = p.name
 
@@ -222,8 +222,8 @@
         mq.reverse()
         for rev in mq:
             if rev not in skipped:
-                repo.ui.debug('import mq patch %d (%s)\n' % (state[rev],
-                                                            mqrebase[rev]))
+                repo.ui.debug(_('import mq patch %d (%s)\n')
+                              % (state[rev], mqrebase[rev]))
                 repo.mq.qimport(repo, (), patchname=mqrebase[rev],
                             git=opts.get('git', False),rev=[str(state[rev])])
         repo.mq.save_dirty()


More information about the Mercurial-devel mailing list