original_docstring: Replace the stores after current repository is upgraded
  
      Creates a backup of current repository store at backup path
      Replaces upgraded store files in current repo from upgraded one
  
      Arguments:
        currentrepo: repo object of current repository
        upgradedrepo: repo object of the upgraded data
        backupvfs: vfs object for the backup path
        upgrade_op: upgrade operation object
                    to be used to decide what all is upgraded
      
docstring: Replace the stores after current repository is upgraded
  Creates a backup of current repository store at backup path
  Replaces upgraded store files in current repo from upgraded one
docstring_tokens: Replace the stores after current repository is upgraded Creates a backup of current repository store at backup path Replaces upgraded store files in current repo from upgraded one
code: def _replacestores(currentrepo, upgradedrepo, backupvfs, upgrade_op):
      """Replace the stores after current repository is upgraded
  
      Creates a backup of current repository store at backup path
      Replaces upgraded store files in current repo from upgraded one
  
      Arguments:
        currentrepo: repo object of current repository
        upgradedrepo: repo object of the upgraded data
        backupvfs: vfs object for the backup path
        upgrade_op: upgrade operation object
                    to be used to decide what all is upgraded
      """
      # TODO: don't blindly rename everything in store
      # There can be upgrades where store is not touched at all
      util.rename(currentrepo.spath, backupvfs.join(b'store'))
      util.rename(upgradedrepo.spath, currentrepo.spath)
code_tokens: def _replacestores ( currentrepo , upgradedrepo , backupvfs , upgrade_op ) : util . rename ( currentrepo . spath , backupvfs . join ( b'store' ) ) util . rename ( upgradedrepo . spath , currentrepo . spath )
short_docstring: Replace the stores after current repository is upgraded
  Creates a backup of current repository store at backup path
  Replaces upgraded store files in current repo from upgraded one
short_docstring_tokens: Replace the stores after current repository is upgraded Creates a backup of current repository store at backup path Replaces upgraded store files in current repo from upgraded one
comment: """Replace the stores after current repository is upgraded
  
      Creates a backup of current repository store at backup path
      Replaces upgraded store files in current repo from upgraded one
  
      Arguments:
        currentrepo: repo object of current repository
        upgradedrepo: repo object of the upgraded data
        backupvfs: vfs object for the backup path
        upgrade_op: upgrade operation object
                    to be used to decide what all is upgraded
      """$SEP$# TODO: don't blindly rename everything in store$SEP$# There can be upgrades where store is not touched at all