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
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
def get_txn_root(self): if not self.txn: return None root = fs.svn_fs_txn_root(self.txn, self.pool) return root