def get_path_mergeinfo(self, path, root_url=None):
     mergeinfo = client.mergeinfo_get_merged(path, self.base_optrev,
                                             self.ctx)
     if not mergeinfo:
         return mergeinfo
     if not root_url:
         path_url, root_url = self.get_path_urls(path)
         if not root_url:
             ras = self.cc.open_ra_session(url)
             root_url = ra.get_repos_root(ras)
     assert root_url
     new_mergeinfo = {}
     for key, value in mergeinfo.items():
         new_key = relative_path_from_urls(root_url, key, True)
         new_mergeinfo[new_key] = value
     return new_mergeinfo
 def get_path_mergeinfo(self, path, root_url=None):
     mergeinfo = client.mergeinfo_get_merged(path, self.base_optrev,
                                             self.ctx)
     if not mergeinfo:
         return mergeinfo
     if not root_url:
         path_url, root_url = self.get_path_urls(path)
         if not root_url:
             ras = self.cc.open_ra_session(url)
             root_url = ra.get_repos_root(ras)
     assert root_url
     new_mergeinfo = {}
     for key, value in mergeinfo.items():
         new_key = relative_path_from_urls(root_url, key, True)
         new_mergeinfo[new_key] = value
     return new_mergeinfo