Show More
@@ -698,6 +698,8 b' def readrequires(opener, supported):' | |||||
698 | requirements = set(opener.read("requires").splitlines()) |
|
698 | requirements = set(opener.read("requires").splitlines()) | |
699 | for r in requirements: |
|
699 | for r in requirements: | |
700 | if r not in supported: |
|
700 | if r not in supported: | |
|
701 | if not r or not r[0].isalnum(): | |||
|
702 | raise error.RequirementError(_(".hg/requires file is corrupt")) | |||
701 | raise error.RequirementError(_("unknown repository format: " |
|
703 | raise error.RequirementError(_("unknown repository format: " | |
702 | "requires feature '%s' (upgrade Mercurial)") % r) |
|
704 | "requires feature '%s' (upgrade Mercurial)") % r) | |
703 | return requirements |
|
705 | return requirements |
General Comments 0
You need to be logged in to leave comments.
Login now