Exemplo n.º 1
0
 def get_revision_copy_source(self, revision):
     root = fs.svn_fs_revision_root(self.fs, revision, self.pool)
     chgpaths = fs.svn_fs_paths_changed(root, self.pool)
     for chgpath in chgpaths:
         (srcrev, srcpath) = fs.svn_fs_copied_from(root, chgpath, self.pool)
         #print >>sys.stderr, "chgpath: %s -> %s @ %d" % (chgpath, srcpath, srcrev)
         if srcrev > 0 and srcpath is not None:
             return (srcrev, srcpath)
     return None
Exemplo n.º 2
0
 def get_revision_copy_source(self, revision):
     root = fs.svn_fs_revision_root(self.fs, revision, self.pool)
     chgpaths = fs.svn_fs_paths_changed(root, self.pool)
     for chgpath in chgpaths:
         (srcrev, srcpath) = fs.svn_fs_copied_from(root, chgpath, self.pool)
         # print >>sys.stderr, "chgpath: %s -> %s @ %d" % (chgpath, srcpath, srcrev)
         if srcrev > 0 and srcpath is not None:
             return (srcrev, srcpath)
     return None
Exemplo n.º 3
0
 def get_revision_root(self, revision):
     try:
         root = fs.svn_fs_revision_root(self.fs, revision, self.pool)
     except SubversionException:
         return None
     return root
Exemplo n.º 4
0
 def get_revision_root(self, revision):
     try:
         root = fs.svn_fs_revision_root(self.fs, revision, self.pool)
     except SubversionException:
         return None
     return root