##// END OF EJS Templates
Fix warning: Seen unexpected token "%"
Dongsheng Song -
r8908:105343f9 default
parent child Browse files
Show More
@@ -77,7 +77,7 b' class localrepository(repo.repository):'
77 s = os.path.realpath(self.opener("sharedpath").read())
77 s = os.path.realpath(self.opener("sharedpath").read())
78 if not os.path.exists(s):
78 if not os.path.exists(s):
79 raise error.RepoError(
79 raise error.RepoError(
80 _('.hg/sharedpath points to nonexistent directory %s' % s))
80 _('.hg/sharedpath points to nonexistent directory %s') % s)
81 self.sharedpath = s
81 self.sharedpath = s
82 except IOError, inst:
82 except IOError, inst:
83 if inst.errno != errno.ENOENT:
83 if inst.errno != errno.ENOENT:
@@ -1515,8 +1515,8 b' class localrepository(repo.repository):'
1515 if warn:
1515 if warn:
1516 if not rheads: # new branch requires --force
1516 if not rheads: # new branch requires --force
1517 self.ui.warn(_("abort: push creates new"
1517 self.ui.warn(_("abort: push creates new"
1518 " remote branch '%s'!\n" %
1518 " remote branch '%s'!\n") %
1519 self[updatelh[0]].branch()))
1519 self[updatelh[0]].branch())
1520 else:
1520 else:
1521 self.ui.warn(_("abort: push creates new remote heads!\n"))
1521 self.ui.warn(_("abort: push creates new remote heads!\n"))
1522
1522
@@ -65,9 +65,9 b' def submerge(repo, wctx, mctx, actx):'
65 elif l[0] != r[0]: # sources differ
65 elif l[0] != r[0]: # sources differ
66 if repo.ui.prompt(
66 if repo.ui.prompt(
67 _(' subrepository sources for %s differ\n'
67 _(' subrepository sources for %s differ\n'
68 'use (l)ocal source (%s) or (r)emote source (%s)?'
68 'use (l)ocal source (%s) or (r)emote source (%s)?')
69 % (s, l[0], r[0]),
69 % (s, l[0], r[0]),
70 (_('&Local'), _('&Remote')), _('l'))) == _('r'):
70 (_('&Local'), _('&Remote')), _('l')) == _('r'):
71 wctx.sub(s).get(r)
71 wctx.sub(s).get(r)
72 sm[s] = r
72 sm[s] = r
73 elif l[1] == a[1]: # local side is unchanged
73 elif l[1] == a[1]: # local side is unchanged
@@ -81,8 +81,8 b' def submerge(repo, wctx, mctx, actx):'
81 else:
81 else:
82 if repo.ui.prompt(
82 if repo.ui.prompt(
83 _(' local changed subrepository %s which remote removed\n'
83 _(' local changed subrepository %s which remote removed\n'
84 'use (c)hanged version or (d)elete?' % s,
84 'use (c)hanged version or (d)elete?') % s,
85 (_('&Changed'), _('&Delete')), _('c'))) == _('d'):
85 (_('&Changed'), _('&Delete')), _('c')) == _('d'):
86 wctx.sub(s).remove()
86 wctx.sub(s).remove()
87
87
88 for s, r in s2.items():
88 for s, r in s2.items():
@@ -94,8 +94,8 b' def submerge(repo, wctx, mctx, actx):'
94 elif r != sa[s]:
94 elif r != sa[s]:
95 if repo.ui.prompt(
95 if repo.ui.prompt(
96 _(' remote changed subrepository %s which local removed\n'
96 _(' remote changed subrepository %s which local removed\n'
97 'use (c)hanged version or (d)elete?' % s,
97 'use (c)hanged version or (d)elete?') % s,
98 (_('&Changed'), _('&Delete')), _('c'))) == _('c'):
98 (_('&Changed'), _('&Delete')), _('c')) == _('c'):
99 wctx.sub(s).get(r)
99 wctx.sub(s).get(r)
100 sm[s] = r
100 sm[s] = r
101
101
General Comments 0
You need to be logged in to leave comments. Login now