Example #1
0
 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
Example #2
0
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)
Example #3
0
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)
Example #4
0
 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
Example #5
0
 def get_full_revision_path(self, entry):
     return join_paths(self.root, self.get_revision_path(entry))
Example #6
0
 def get_full_revision_path(self, entry):
     return join_paths(self.root, self.get_revision_path(entry))