From c3345fe423ba383ef4c68b3d747c2c4f2ea6e38b Mon Sep 17 00:00:00 2001
From: Thomas Waldmann <tw@waldmann-edv.de>
Date: Wed, 3 Aug 2022 21:46:54 +0200
Subject: [PATCH] remove remainders of borg key migrate-to-repokey

---
 docs/usage/key_migrate-to-repokey.rst.inc | 60 -----------------------
 setup_docs.py                             |  1 -
 2 files changed, 61 deletions(-)
 delete mode 100644 docs/usage/key_migrate-to-repokey.rst.inc

diff --git a/docs/usage/key_migrate-to-repokey.rst.inc b/docs/usage/key_migrate-to-repokey.rst.inc
deleted file mode 100644
index 33cff7209..000000000
--- a/docs/usage/key_migrate-to-repokey.rst.inc
+++ /dev/null
@@ -1,60 +0,0 @@
-.. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
-
-.. _borg_key_migrate-to-repokey:
-
-borg key migrate-to-repokey
----------------------------
-.. code-block:: none
-
-    borg [common options] key migrate-to-repokey [options] [REPOSITORY]
-
-.. only:: html
-
-    .. class:: borg-options-table
-
-    +-------------------------------------------------------+----------------+--+
-    | **positional arguments**                                                  |
-    +-------------------------------------------------------+----------------+--+
-    |                                                       | ``REPOSITORY`` |  |
-    +-------------------------------------------------------+----------------+--+
-    | .. class:: borg-common-opt-ref                                            |
-    |                                                                           |
-    | :ref:`common_options`                                                     |
-    +-------------------------------------------------------+----------------+--+
-
-    .. raw:: html
-
-        <script type='text/javascript'>
-        $(document).ready(function () {
-            $('.borg-options-table colgroup').remove();
-        })
-        </script>
-
-.. only:: latex
-
-    REPOSITORY
-
-
-
-    :ref:`common_options`
-        |
-
-Description
-~~~~~~~~~~~
-
-This command migrates a repository from passphrase mode (removed in Borg 1.0)
-to repokey mode.
-
-You will be first asked for the repository passphrase (to open it in passphrase
-mode). This is the same passphrase as you used to use for this repo before 1.0.
-
-It will then derive the different secrets from this passphrase.
-
-Then you will be asked for a new passphrase (twice, for safety). This
-passphrase will be used to protect the repokey (which contains these same
-secrets in encrypted form). You may use the same passphrase as you used to
-use, but you may also use a different one.
-
-After migrating to repokey mode, you can change the passphrase at any time.
-But please note: the secrets will always stay the same and they could always
-be derived from your (old) passphrase-mode passphrase.
\ No newline at end of file
diff --git a/setup_docs.py b/setup_docs.py
index c568a70a2..a9a77d3a5 100644
--- a/setup_docs.py
+++ b/setup_docs.py
@@ -315,7 +315,6 @@ class build_man(Command):
         "key_change-location": "key",
         "key_export": "key",
         "key_import": "key",
-        "key_migrate-to-repokey": "key",
         "export-tar": "tar",
         "import-tar": "tar",
         "benchmark_crud": "benchmark",