Show More
@@ -42,10 +42,17 b' class statichttprepository(localrepo.loc' | |||
|
42 | 42 | try: |
|
43 | 43 | requirements = self.opener("requires").read().splitlines() |
|
44 | 44 | except IOError, inst: |
|
45 |
if inst.errno |
|
|
45 | if inst.errno != errno.ENOENT: | |
|
46 | raise | |
|
47 | # check if it is a non-empty old-style repository | |
|
48 | try: | |
|
49 | self.opener("00changelog.i").read(1) | |
|
50 | except IOError, inst: | |
|
51 | if inst.errno != errno.ENOENT: | |
|
52 | raise | |
|
53 | # we do not care about empty old-style repositories here | |
|
46 | 54 | msg = _("'%s' does not appear to be an hg repository") % path |
|
47 | 55 | raise repo.RepoError(msg) |
|
48 | else: | |
|
49 | 56 |
|
|
50 | 57 | |
|
51 | 58 | # check them |
General Comments 0
You need to be logged in to leave comments.
Login now