Show More
@@ -174,7 +174,11 b' class mercurial_source(converter_source)' | |||||
174 | converter_source.__init__(self, ui, path, rev) |
|
174 | converter_source.__init__(self, ui, path, rev) | |
175 | try: |
|
175 | try: | |
176 | self.repo = hg.repository(self.ui, path) |
|
176 | self.repo = hg.repository(self.ui, path) | |
177 | except: |
|
177 | # try to provoke an exception if this isn't really a hg | |
|
178 | # repo, but some other bogus compatible-looking url | |||
|
179 | self.repo.heads() | |||
|
180 | except hg.RepoError: | |||
|
181 | ui.print_exc() | |||
178 | raise NoRepo("could not open hg repo %s as source" % path) |
|
182 | raise NoRepo("could not open hg repo %s as source" % path) | |
179 | self.lastrev = None |
|
183 | self.lastrev = None | |
180 | self.lastctx = None |
|
184 | self.lastctx = None |
@@ -128,6 +128,7 b' class convert_svn(converter_source):' | |||||
128 | self.paths = {} |
|
128 | self.paths = {} | |
129 | self.uuid = svn.ra.get_uuid(self.ra).decode(self.encoding) |
|
129 | self.uuid = svn.ra.get_uuid(self.ra).decode(self.encoding) | |
130 | except SubversionException, e: |
|
130 | except SubversionException, e: | |
|
131 | ui.print_exc() | |||
131 | raise NoRepo("couldn't open SVN repo %s" % self.url) |
|
132 | raise NoRepo("couldn't open SVN repo %s" % self.url) | |
132 |
|
133 | |||
133 | if rev: |
|
134 | if rev: |
General Comments 0
You need to be logged in to leave comments.
Login now