diff mercurial/localrepo.py @ 8908:105343f9f744

Fix warning: Seen unexpected token "%"
author Dongsheng Song <dongsheng.song@gmail.com>
date Fri, 19 Jun 2009 14:28:29 +0800
parents db3c1ab0e632
children 3df8dbf706b0
line wrap: on
line diff
--- a/mercurial/localrepo.py	Thu Jun 18 16:56:03 2009 -0500
+++ b/mercurial/localrepo.py	Fri Jun 19 14:28:29 2009 +0800
@@ -77,7 +77,7 @@
             s = os.path.realpath(self.opener("sharedpath").read())
             if not os.path.exists(s):
                 raise error.RepoError(
-                    _('.hg/sharedpath points to nonexistent directory %s' % s))
+                    _('.hg/sharedpath points to nonexistent directory %s') % s)
             self.sharedpath = s
         except IOError, inst:
             if inst.errno != errno.ENOENT:
@@ -1515,8 +1515,8 @@
             if warn:
                 if not rheads: # new branch requires --force
                     self.ui.warn(_("abort: push creates new"
-                                   " remote branch '%s'!\n" %
-                                   self[updatelh[0]].branch()))
+                                   " remote branch '%s'!\n") %
+                                   self[updatelh[0]].branch())
                 else:
                     self.ui.warn(_("abort: push creates new remote heads!\n"))