Changeset - 6d7f88566127
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 13 years ago 2012-11-04 14:55:13
marcin@python-works.com
Added children function for VCS for mercurial backend
2 files changed with 15 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/vcs/backends/base.py
Show inline comments
 
@@ -395,6 +395,13 @@ class BaseChangeset(object):
 
        raise NotImplementedError
 

	
 
    @LazyProperty
 
    def children(self):
 
        """
 
        Returns list of children changesets.
 
        """
 
        raise NotImplementedError
 

	
 
    @LazyProperty
 
    def id(self):
 
        """
 
        Returns string identifying this changeset.
rhodecode/lib/vcs/backends/hg/changeset.py
Show inline comments
 
@@ -95,6 +95,14 @@ class MercurialChangeset(BaseChangeset):
 
        return [self.repository.get_changeset(parent.rev())
 
                for parent in self._ctx.parents() if parent.rev() >= 0]
 

	
 
    @LazyProperty
 
    def children(self):
 
        """
 
        Returns list of children changesets.
 
        """
 
        return [self.repository.get_changeset(child.rev())
 
                for child in self._ctx.children() if child.rev() >= 0]
 

	
 
    def next(self, branch=None):
 

	
 
        if branch and self.branch != branch:
0 comments (0 inline, 0 general)