Show More
@@ -268,7 +268,7 class GitRepository(BaseRepository): | |||||
268 | revision = self.revisions[int(revision)] |
|
268 | revision = self.revisions[int(revision)] | |
269 | except: |
|
269 | except: | |
270 | raise ChangesetDoesNotExistError("Revision %r does not exist " |
|
270 | raise ChangesetDoesNotExistError("Revision %r does not exist " | |
271 |
"for this repository |
|
271 | "for this repository" % (revision)) | |
272 |
|
272 | |||
273 | elif is_bstr(revision): |
|
273 | elif is_bstr(revision): | |
274 | # get by branch/tag name |
|
274 | # get by branch/tag name | |
@@ -283,7 +283,7 class GitRepository(BaseRepository): | |||||
283 |
|
283 | |||
284 | elif not pattern.match(revision) or revision not in self.revisions: |
|
284 | elif not pattern.match(revision) or revision not in self.revisions: | |
285 | raise ChangesetDoesNotExistError("Revision %r does not exist " |
|
285 | raise ChangesetDoesNotExistError("Revision %r does not exist " | |
286 |
"for this repository |
|
286 | "for this repository" % (revision)) | |
287 |
|
287 | |||
288 | # Ensure we return full id |
|
288 | # Ensure we return full id | |
289 | if not pattern.match(str(revision)): |
|
289 | if not pattern.match(str(revision)): |
@@ -405,8 +405,8 class MercurialRepository(BaseRepository | |||||
405 | revision = hex(self._repo.lookup(revision)) |
|
405 | revision = hex(self._repo.lookup(revision)) | |
406 | except (IndexError, ValueError, RepoLookupError, TypeError): |
|
406 | except (IndexError, ValueError, RepoLookupError, TypeError): | |
407 | raise ChangesetDoesNotExistError("Revision %r does not " |
|
407 | raise ChangesetDoesNotExistError("Revision %r does not " | |
408 |
"exist for this repository |
|
408 | "exist for this repository" | |
409 |
% (revision |
|
409 | % (revision)) | |
410 | return revision |
|
410 | return revision | |
411 |
|
411 | |||
412 | def _get_archives(self, archive_name='tip'): |
|
412 | def _get_archives(self, archive_name='tip'): |
@@ -294,8 +294,7 removed extra unicode conversion in diff | |||||
294 | msg = """Revision %r does not exist for this repository""" % (rev) |
|
294 | msg = """Revision %r does not exist for this repository""" % (rev) | |
295 | self.checkSessionFlash(response, msg) |
|
295 | self.checkSessionFlash(response, msg) | |
296 |
|
296 | |||
297 | msg = """%s""" % (HG_REPO) |
|
297 | self.assertEqual('http://localhost/%s/files/tip/' % HG_REPO, response.headers['location']) | |
298 | self.checkSessionFlash(response, msg) |
|
|||
299 |
|
298 | |||
300 | def test_raw_file_wrong_f_path(self): |
|
299 | def test_raw_file_wrong_f_path(self): | |
301 | self.log_user() |
|
300 | self.log_user() | |
@@ -333,8 +332,7 removed extra unicode conversion in diff | |||||
333 | msg = """Revision %r does not exist for this repository""" % (rev) |
|
332 | msg = """Revision %r does not exist for this repository""" % (rev) | |
334 | self.checkSessionFlash(response, msg) |
|
333 | self.checkSessionFlash(response, msg) | |
335 |
|
334 | |||
336 | msg = """%s""" % (HG_REPO) |
|
335 | self.assertEqual('http://localhost/%s/files/tip/' % HG_REPO, response.headers['location']) | |
337 | self.checkSessionFlash(response, msg) |
|
|||
338 |
|
336 | |||
339 | def test_raw_wrong_f_path(self): |
|
337 | def test_raw_wrong_f_path(self): | |
340 | self.log_user() |
|
338 | self.log_user() |
General Comments 0
You need to be logged in to leave comments.
Login now