Changeset - ed8c2fc8dd3b
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-06-04 21:37:41
marcin@python-works.com
Add support for vcs Changeset objects in get_diff method
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/vcs/backends/hg/repository.py
Show inline comments
 
@@ -231,6 +231,12 @@ class MercurialRepository(BaseRepository
 
        :param context: How many lines before/after changed lines should be
 
          shown. Defaults to ``3``.
 
        """
 
        if hasattr(rev1, 'raw_id'):
 
            rev1 = getattr(rev1, 'raw_id')
 

	
 
        if hasattr(rev2, 'raw_id'):
 
            rev2 = getattr(rev2, 'raw_id')
 

	
 
        # Check if given revisions are present at repository (may raise
 
        # ChangesetDoesNotExistError)
 
        if rev1 != self.EMPTY_CHANGESET:
0 comments (0 inline, 0 general)