original_docstring:  returns the new revlog object created
docstring: returns the new revlog object created
docstring_tokens: returns the new revlog object created
code: def _perform_clone(
      ui,
      dstrepo,
      tr,
      old_revlog,
      unencoded,
      upgrade_op,
      sidedatacompanion,
      oncopiedrevision,
  ):
      """ returns the new revlog object created"""
      newrl = None
      if matchrevlog(upgrade_op.revlogs_to_process, unencoded):
          ui.note(
              _(b'cloning %d revisions from %s\n') % (len(old_revlog), unencoded)
          )
          newrl = _revlogfrompath(dstrepo, unencoded)
          old_revlog.clone(
              tr,
              newrl,
              addrevisioncb=oncopiedrevision,
              deltareuse=upgrade_op.delta_reuse_mode,
              forcedeltabothparents=upgrade_op.force_re_delta_both_parents,
              sidedatacompanion=sidedatacompanion,
          )
      else:
          msg = _(b'blindly copying %s containing %i revisions\n')
          ui.note(msg % (unencoded, len(old_revlog)))
          _copyrevlog(tr, dstrepo, old_revlog, unencoded)
  
          newrl = _revlogfrompath(dstrepo, unencoded)
      return newrl
code_tokens: def _perform_clone ( ui , dstrepo , tr , old_revlog , unencoded , upgrade_op , sidedatacompanion , oncopiedrevision , ) : newrl = None if matchrevlog ( upgrade_op . revlogs_to_process , unencoded ) : ui . note ( _ ( b'cloning %d revisions from %s\n' ) % ( len ( old_revlog ) , unencoded ) ) newrl = _revlogfrompath ( dstrepo , unencoded ) old_revlog . clone ( tr , newrl , addrevisioncb = oncopiedrevision , deltareuse = upgrade_op . delta_reuse_mode , forcedeltabothparents = upgrade_op . force_re_delta_both_parents , sidedatacompanion = sidedatacompanion , ) else : msg = _ ( b'blindly copying %s containing %i revisions\n' ) ui . note ( msg % ( unencoded , len ( old_revlog ) ) ) _copyrevlog ( tr , dstrepo , old_revlog , unencoded ) newrl = _revlogfrompath ( dstrepo , unencoded ) return newrl
short_docstring: returns the new revlog object created
short_docstring_tokens: returns the new revlog object created
comment: """ returns the new revlog object created"""