Esempio n. 1
0
 def get_txn_copy_source(self):
     if not self.txn:
         return None
     root = fs.svn_fs_txn_root(self.txn, 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
Esempio n. 2
0
 def get_txn_copy_source(self):
     if not self.txn:
         return None
     root = fs.svn_fs_txn_root(self.txn, 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
Esempio n. 3
0
 def get_txn_root(self):
     if not self.txn:
         return None
     root = fs.svn_fs_txn_root(self.txn, self.pool)
     return root
Esempio n. 4
0
 def get_txn_root(self):
     if not self.txn:
         return None
     root = fs.svn_fs_txn_root(self.txn, self.pool)
     return root