original_docstring: copy all relevant files for `oldrl` into `destrepo` store
  
      Files are copied "as is" without any transformation. The copy is performed
      without extra checks. Callers are responsible for making sure the copied
      content is compatible with format of the destination repository.
      
docstring: copy all relevant files for `oldrl` into `destrepo` store
  Files are copied "as is" without any transformation. The copy is performed
  without extra checks. Callers are responsible for making sure the copied
  content is compatible with format of the destination repository.
docstring_tokens: copy all relevant files for ` oldrl ` into ` destrepo ` store Files are copied " as is " without any transformation . The copy is performed without extra checks . Callers are responsible for making sure the copied content is compatible with format of the destination repository .
code: def _copyrevlog(tr, destrepo, oldrl, unencodedname):
      """copy all relevant files for `oldrl` into `destrepo` store
  
      Files are copied "as is" without any transformation. The copy is performed
      without extra checks. Callers are responsible for making sure the copied
      content is compatible with format of the destination repository.
      """
      oldrl = getattr(oldrl, '_revlog', oldrl)
      newrl = _revlogfrompath(destrepo, unencodedname)
      newrl = getattr(newrl, '_revlog', newrl)
  
      oldvfs = oldrl.opener
      newvfs = newrl.opener
      oldindex = oldvfs.join(oldrl.indexfile)
      newindex = newvfs.join(newrl.indexfile)
      olddata = oldvfs.join(oldrl.datafile)
      newdata = newvfs.join(newrl.datafile)
  
      with newvfs(newrl.indexfile, b'w'):
          pass  # create all the directories
  
      util.copyfile(oldindex, newindex)
      copydata = oldrl.opener.exists(oldrl.datafile)
      if copydata:
          util.copyfile(olddata, newdata)
  
      if not (
          unencodedname.endswith(b'00changelog.i')
          or unencodedname.endswith(b'00manifest.i')
      ):
          destrepo.svfs.fncache.add(unencodedname)
          if copydata:
              destrepo.svfs.fncache.add(unencodedname[:-2] + b'.d')
code_tokens: def _copyrevlog ( tr , destrepo , oldrl , unencodedname ) : oldrl = getattr ( oldrl , '_revlog' , oldrl ) newrl = _revlogfrompath ( destrepo , unencodedname ) newrl = getattr ( newrl , '_revlog' , newrl ) oldvfs = oldrl . opener newvfs = newrl . opener oldindex = oldvfs . join ( oldrl . indexfile ) newindex = newvfs . join ( newrl . indexfile ) olddata = oldvfs . join ( oldrl . datafile ) newdata = newvfs . join ( newrl . datafile ) with newvfs ( newrl . indexfile , b'w' ) : pass util . copyfile ( oldindex , newindex ) copydata = oldrl . opener . exists ( oldrl . datafile ) if copydata : util . copyfile ( olddata , newdata ) if not ( unencodedname . endswith ( b'00changelog.i' ) or unencodedname . endswith ( b'00manifest.i' ) ) : destrepo . svfs . fncache . add ( unencodedname ) if copydata : destrepo . svfs . fncache . add ( unencodedname [ : - 2 ] + b'.d' )
short_docstring: copy all relevant files for `oldrl` into `destrepo` store
  Files are copied "as is" without any transformation.
short_docstring_tokens: copy all relevant files for ` oldrl ` into ` destrepo ` store Files are copied " as is " without any transformation .
comment: """copy all relevant files for `oldrl` into `destrepo` store
  
      Files are copied "as is" without any transformation. The copy is performed
      without extra checks. Callers are responsible for making sure the copied
      content is compatible with format of the destination repository.
      """$SEP$# create all the directories