original_docstring: Obtain a revlog from a repo path.
  
      An instance of the appropriate class is returned.
      
docstring: Obtain a revlog from a repo path.
  An instance of the appropriate class is returned.
docstring_tokens: Obtain a revlog from a repo path . An instance of the appropriate class is returned .
code: def _revlogfrompath(repo, path):
      """Obtain a revlog from a repo path.
  
      An instance of the appropriate class is returned.
      """
      if path == b'00changelog.i':
          return changelog.changelog(repo.svfs)
      elif path.endswith(b'00manifest.i'):
          mandir = path[: -len(b'00manifest.i')]
          return manifest.manifestrevlog(repo.svfs, tree=mandir)
      else:
          # reverse of "/".join(("data", path + ".i"))
          return filelog.filelog(repo.svfs, path[5:-2])
code_tokens: def _revlogfrompath ( repo , path ) : if path == b'00changelog.i' : return changelog . changelog ( repo . svfs ) elif path . endswith ( b'00manifest.i' ) : mandir = path [ : - len ( b'00manifest.i' ) ] return manifest . manifestrevlog ( repo . svfs , tree = mandir ) else : return filelog . filelog ( repo . svfs , path [ 5 : - 2 ] )
short_docstring: Obtain a revlog from a repo path.
short_docstring_tokens: Obtain a revlog from a repo path .
comment: """Obtain a revlog from a repo path.
  
      An instance of the appropriate class is returned.
      """$SEP$# reverse of "/".join(("data", path + ".i"))