code: def get_repo_relpath(repo, relpath):
      
      from os import path
      if relpath[0:2] == "./":
          return path.join(repo, relpath[2::])
      else:
          from os import chdir, getcwd
          cd = getcwd()
          chdir(path.expanduser(repo))
          result = path.abspath(relpath)
          chdir(cd)
          return result
docs: Returns the absolute path to the 'relpath' taken relative to the base
      directory of the repository.