[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 1e71cec4d0 074/102: Docs: Improve versioning se
|
From: |
ELPA Syncer |
|
Subject: |
[nongnu] elpa/hyperdrive 1e71cec4d0 074/102: Docs: Improve versioning section |
|
Date: |
Wed, 29 Nov 2023 04:00:56 -0500 (EST) |
branch: elpa/hyperdrive
commit 1e71cec4d0385c370e36d2089e5c2e0fc0d453b3
Author: Joseph Turner <joseph@ushin.org>
Commit: Adam Porter <adam@alphapapa.net>
Docs: Improve versioning section
---
doc/hyperdrive.org | 44 +++++++++++++++++++++++++-------------------
1 file changed, 25 insertions(+), 19 deletions(-)
diff --git a/doc/hyperdrive.org b/doc/hyperdrive.org
index 2fd7b92379..cd747b5a39 100644
--- a/doc/hyperdrive.org
+++ b/doc/hyperdrive.org
@@ -605,19 +605,23 @@ Hyperdrives are versioned, meaning that it is possible to
explore a
hyperdrive as it was in the past. Version numbers indicate the
hyperdrive's version. For example, ~hyper://PUBLIC-KEY/$/version/50/~
refers to the fiftieth version of the hyperdrive identified by
-~PUBLIC-KEY~. Loading a hyperdrive entry without specifying a version
-number always loads the most recent version of that hyperdrive. If you
-pass ~hyper://PUBLIC-KEY/foo.org~ to ~hyperdrive-open-url~, ~hyperdrive.el~
-will always attempt to find ~/foo.org~ inside the latest version of that
-hyperdrive.
-
-Whenever you update an entry, the hyperdrive's version number gets
-incremented by 1. The version number tells you how many times the
-hyperdrive has been modified, not how many times a particular entry
-has been modified. For example, let's say that the current version of
-your hyperdrive at ~hyper://PUBLIC-KEY/~ is 50. If you add a new entry
-at ~hyper://PUBLIC-KEY/bar.org~, the latest version of your hyperdrive
-will become 51.
+~PUBLIC-KEY~. If you want to load the latest version, leave out the
+~/$/version/N~ part. For example, if you run...
+
+#+begin_example
+M-x hyperdrive-open-url RET hyper://PUBLIC-KEY/foo.org RET
+#+end_example
+
+...then ~hyperdrive.el~ will attempt to find ~/foo.org~ inside the latest
version
+of that hyperdrive.
+
+Whenever you add a file, remove a file, or change a file, the
+hyperdrive's version number gets incremented by 1. The version number
+tells you how many times the hyperdrive has been modified, not how
+many times a particular file has been modified. For example, let's say
+that the current version of your hyperdrive at ~hyper://PUBLIC-KEY/~
+is 50. If you add a new file at ~hyper://PUBLIC-KEY/bar.org~, the latest
+version of your hyperdrive will become 51.
Since ~/bar.org~ did not exist before version 51, ~hyperdrive.el~ should
warn you that nothing exists at
@@ -625,10 +629,9 @@ warn you that nothing exists at
~hyper://PUBLIC-KEY/quux.org~, your hyperdrive's latest version will
become 52. For the moment, ~hyper://PUBLIC-KEY/bar.org~,
~hyper://PUBLIC-KEY/$/version/51/bar.org~, and
-~hyper://PUBLIC-KEY/$/version/52/bar.org~, all point to the same
-version of ~/bar.org~. If you then make a change to ~/bar.org~, your
-hyperdrive's latest version will become 53. Now
-~hyper://PUBLIC-KEY/bar.org~ and
+~hyper://PUBLIC-KEY/$/version/52/bar.org~, all point to the same version
+of ~/bar.org~. If you then make a change to ~/bar.org~, your hyperdrive's
+latest version will become 53. Now ~hyper://PUBLIC-KEY/bar.org~ and
~hyper://PUBLIC-KEY/$/version/53/bar.org~ will point to the latest
version of ~/bar.org~, while the 51- and 52-versioned URLs will continue
to point to the original version.
@@ -647,8 +650,11 @@ hyperdrive history until version 51 (when it was created)
and that it
was modified at version 53. Since the final range number in the table
is 53, we also know that the hyperdrive's latest version is 53.
-If you delete ~/bar.org~, ~hyper://PUBLIC-KEY/bar.org~ will no longer
-point to anything, but the versioned URLs will still work.
+If you delete ~/bar.org~ then try to load ~hyper://PUBLIC-KEY/bar.org~,
+~hyperdrive.el~ will open an empty buffer for you to author a new file.
+If another user (not you) attempts to load that URL, ~hyperdrive.el~
+will warn ~"URL not found"~. All users can still access the old file
+contents at the versioned URLs.
Since only the current version of a hyperdrive entry can be updated,
~hyperdrive.el~ sets the buffer to read-only whenever a version number
- [nongnu] elpa/hyperdrive b8ca5ec017 042/102: Fix (hyperdrive-menu-hyperdrive) Autoload, (continued)
- [nongnu] elpa/hyperdrive b8ca5ec017 042/102: Fix (hyperdrive-menu-hyperdrive) Autoload, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive dae287e1aa 012/102: Comment: Add transient todos, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive f5d14e4226 050/102: Change: (hyperdrive-preferred-naming) Rename from -default-host-format, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive b268bed649 028/102: Change: (hyperdrive-mirror-set-target) Use :always-read nil, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 165f2f9a9d 056/102: Change: Rename variable, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 48afc51ac2 088/102: Fix: (org-open-at-point-functions) Pass full symbol, not shorthand, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive fdf2b7cbff 078/102: Docs: Fix typo, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 211a0c7cba 087/102: Tidy: Indentation, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 4108f968aa 080/102: Tidy: Typo, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive af5daac737 017/102: Change: (-menu-hyperdrive) Use default-directory as default source, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 1e71cec4d0 074/102: Docs: Improve versioning section,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive c6c9bdbb77 082/102: Meta: Depend on transient v0.5.0, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 4aff066a9d 073/102: Docs: Improve naming section, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 5ef8e22cfd 019/102: Change: (hyperdrive-menu-hyperdrive) Simplify wording, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 69d0d16b18 063/102: Use format-spec to customize hyperdrive and entry display, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 9bc9cf44d8 018/102: Fix: (hyperdrive-mirror-read-predicate) Return symbol for named func, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive d0d444aab2 040/102: Change: (hyperdrive-mirror) Rename PREDICATE argument to FILTER, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 3a778929b8 041/102: Change: (hyperdrive-menu-hyperdrive) Wording of Mirror command, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive fea9674bd2 047/102: Change: (hyperdrive--format-entry) Add faces, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 30f378df0a 065/102: Fix: Fix indentation, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive e640a14d84 067/102: Change: (hyperdrive-{message, error}) Call substitute-command-keys, ELPA Syncer, 2023/11/29