Show More
@@ -231,6 +231,12 b' class MercurialRepository(BaseRepository' | |||||
231 | :param context: How many lines before/after changed lines should be |
|
231 | :param context: How many lines before/after changed lines should be | |
232 | shown. Defaults to ``3``. |
|
232 | shown. Defaults to ``3``. | |
233 | """ |
|
233 | """ | |
|
234 | if hasattr(rev1, 'raw_id'): | |||
|
235 | rev1 = getattr(rev1, 'raw_id') | |||
|
236 | ||||
|
237 | if hasattr(rev2, 'raw_id'): | |||
|
238 | rev2 = getattr(rev2, 'raw_id') | |||
|
239 | ||||
234 | # Check if given revisions are present at repository (may raise |
|
240 | # Check if given revisions are present at repository (may raise | |
235 | # ChangesetDoesNotExistError) |
|
241 | # ChangesetDoesNotExistError) | |
236 | if rev1 != self.EMPTY_CHANGESET: |
|
242 | if rev1 != self.EMPTY_CHANGESET: |
General Comments 0
You need to be logged in to leave comments.
Login now