Commit fc9f0d57 authored by Miquel Torres's avatar Miquel Torres
Browse files

Cast to int instead of long

parent 2722ec57
......@@ -122,7 +122,7 @@ class Revision(models.Model):
raise ValidationError("Invalid commit id %s" % self.commitid)
if self.branch.project.repo_type == "S":
try:
long(self.commitid)
int(self.commitid)
except ValueError:
raise ValidationError("Invalid SVN commit id %s" % self.commitid)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment