##// 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 261 raise error.Abort(_("the name '%s' is reserved") % lbl)
262 262 for c in (':', '\0', '\n', '\r'):
263 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 266 try:
266 267 int(lbl)
267 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