Commits

Rajeev Sebastian  committed f2a6781

add method to find child changesets

  • Participants
  • Parent commits de89fc5

Comments (0)

Files changed (1)

File vcs/backends/hg.py

 #!/usr/bin/env python
+# -*- coding: utf-8 -*-
 # encoding: utf-8
 #
 # Copyright (c) 2010 Marcin Kuzminski,Lukasz Balcerzak.  All rights reserved.
         try:
             if src_url:
                 url = self._get_url(src_url)
+                print "set repo", url, type(url)
                 opts = {}
                 if not update_after_clone:
                     opts.update({'noupdate':True})
         """
         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 _fix_path(self, path):
         """