def fetch(entry): # We just pretend we fetched it. Once diff_and_merge # moves instead of copies, we'll have to copy the file # before we return. source_root = source_groupids.to_root(entry.groupid) source_path = join_paths(source_root, entry.path) return source_path
def get_dest_path(dest_groupids, gpath): (groupid, path) = gpath root = dest_groupids.to_root(groupid) # TODO: Handle this error better. if root is None: raise Exception("unknown groupid!", groupid) return join_paths(root, path)
def get_full_revision_path(self, entry): return join_paths(self.root, self.get_revision_path(entry))