##// END OF EJS Templates
Make revlog error slightly less scary
Matt Mackall -
r3743:3a099154 default
parent child Browse files
Show More
@@ -355,14 +355,14 b' class revlog(object):'
355 fmt = v & 0xFFFF
355 fmt = v & 0xFFFF
356 if fmt == REVLOGV0:
356 if fmt == REVLOGV0:
357 if flags:
357 if flags:
358 raise RevlogError(_("index %s invalid flags %x for format v0")
358 raise RevlogError(_("index %s unknown flags %x for format v0")
359 % (self.indexfile, flags))
359 % (self.indexfile, flags))
360 elif fmt == REVLOGNG:
360 elif fmt == REVLOGNG:
361 if flags & ~REVLOGNGINLINEDATA:
361 if flags & ~REVLOGNGINLINEDATA:
362 raise RevlogError(_("index %s invalid flags %x for revlogng")
362 raise RevlogError(_("index %s unknown flags %x for revlogng")
363 % (self.indexfile, flags))
363 % (self.indexfile, flags))
364 else:
364 else:
365 raise RevlogError(_("index %s invalid format %d")
365 raise RevlogError(_("index %s unknown format %d")
366 % (self.indexfile, fmt))
366 % (self.indexfile, fmt))
367 self.version = v
367 self.version = v
368 if v == REVLOGV0:
368 if v == REVLOGV0:
General Comments 0
You need to be logged in to leave comments. Login now