##// END OF EJS Templates
Merge with stable
Martin Geisler -
r11601:4d9b4725 merge default
parent child Browse files
Show More
@@ -113,7 +113,7 b' pypats = ['
113 (r'[^+=*!<>&| -](\s=|=\s)[^= ]',
113 (r'[^+=*!<>&| -](\s=|=\s)[^= ]',
114 "wrong whitespace around ="),
114 "wrong whitespace around ="),
115 (r'raise Exception', "don't raise generic exceptions"),
115 (r'raise Exception', "don't raise generic exceptions"),
116 (r'ui\.(status|progress|write|note)\([\'\"]x',
116 (r'ui\.(status|progress|write|note|warn)\([\'\"]x',
117 "warning: unwrapped ui message"),
117 "warning: unwrapped ui message"),
118 ]
118 ]
119
119
@@ -492,7 +492,7 b' def _dispatch(ui, args):'
492 raise
492 raise
493 args.insert(0, repo)
493 args.insert(0, repo)
494 elif rpath:
494 elif rpath:
495 ui.warn("warning: --repository ignored\n")
495 ui.warn(_("warning: --repository ignored\n"))
496
496
497 d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
497 d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
498 return runcommand(lui, repo, cmd, fullargs, ui, options, d,
498 return runcommand(lui, repo, cmd, fullargs, ui, options, d,
@@ -150,9 +150,10 b' def strip(ui, repo, node, backup="all"):'
150 os.unlink(chgrpfile)
150 os.unlink(chgrpfile)
151 except:
151 except:
152 if backupfile:
152 if backupfile:
153 ui.warn("strip failed, full bundle stored in '%s'\n" % backupfile)
153 ui.warn(_("strip failed, full bundle stored in '%s'\n")
154 % backupfile)
154 elif saveheads:
155 elif saveheads:
155 ui.warn("strip failed, partial bundle stored in '%s'\n"
156 ui.warn(_("strip failed, partial bundle stored in '%s'\n")
156 % chgrpfile)
157 % chgrpfile)
157 raise
158 raise
158
159
@@ -304,7 +304,7 b' class ui(object):'
304 p = self.config('paths', loc)
304 p = self.config('paths', loc)
305 if p:
305 if p:
306 if '%%' in p:
306 if '%%' in p:
307 self.warn("(deprecated '%%' in path %s=%s from %s)\n" %
307 self.warn(_("(deprecated '%%' in path %s=%s from %s)\n") %
308 (loc, p, self.configsource('paths', loc)))
308 (loc, p, self.configsource('paths', loc)))
309 p = p.replace('%%', '%')
309 p = p.replace('%%', '%')
310 p = util.expandpath(p)
310 p = util.expandpath(p)
General Comments 0
You need to be logged in to leave comments. Login now