##// END OF EJS Templates
scmutil: fix a repr in an error message on Python 3...
Augie Fackler -
r36587:bb5f5c1c default
parent child Browse files
Show More
@@ -261,7 +261,8 b' def checknewlabel(repo, lbl, kind):'
261 raise error.Abort(_("the name '%s' is reserved") % lbl)
261 raise error.Abort(_("the name '%s' is reserved") % lbl)
262 for c in (':', '\0', '\n', '\r'):
262 for c in (':', '\0', '\n', '\r'):
263 if c in lbl:
263 if c in lbl:
264 raise error.Abort(_("%r cannot be used in a name") % c)
264 raise error.Abort(
265 _("%r cannot be used in a name") % pycompat.bytestr(c))
265 try:
266 try:
266 int(lbl)
267 int(lbl)
267 raise error.Abort(_("cannot use an integer as a name"))
268 raise error.Abort(_("cannot use an integer as a name"))
General Comments 0
You need to be logged in to leave comments. Login now