##// END OF EJS Templates
context: use portable construction to verify int parsing
Augie Fackler -
r31351:5da0c788 default
parent child Browse files
Show More
@@ -454,7 +454,7 b' class changectx(basectx):'
454
454
455 try:
455 try:
456 r = int(changeid)
456 r = int(changeid)
457 if str(r) != changeid:
457 if '%d' % r != changeid:
458 raise ValueError
458 raise ValueError
459 l = len(repo.changelog)
459 l = len(repo.changelog)
460 if r < 0:
460 if r < 0:
General Comments 0
You need to be logged in to leave comments. Login now