Mercurial > hg
comparison mercurial/help/internals/requirements.txt @ 31133:23080c03a604
share: add --relative flag to store a relative path to the source
Storing a relative path the source repository is useful when exporting
repositories over the network or when they're located on external
drives where the mountpoint isn't always fixed.
Currently, Mercurial interprets paths in `.hg/shared` relative to
$PWD. I suspect this is very much unintentional, and you have to
manually edit `.hg/shared` in order to trigger this behaviour.
However, on the off chance that someone might rely on it, I added a
new capability called 'relshared'. In addition, this makes earlier
versions of Mercurial fail with a graceful error.
I should note that I haven't tested this patch on Windows.
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Mon, 13 Feb 2017 14:05:24 +0100 |
parents | aba2bb2a6d0f |
children | 22371eabb3b1 |
comparison
equal
deleted
inserted
replaced
31132:bbdd712e9adb | 31133:23080c03a604 |
---|---|
53 | 53 |
54 This requirement is set when a repository is created via :hg:`share`. | 54 This requirement is set when a repository is created via :hg:`share`. |
55 | 55 |
56 The requirement was added in Mercurial 1.3 (released July 2009). | 56 The requirement was added in Mercurial 1.3 (released July 2009). |
57 | 57 |
58 relshared | |
59 ========= | |
60 | |
61 Derivative of ``shared``; the location of the store is relative to the | |
62 store of this repository. | |
63 | |
64 This requirement is set when a repository is created via :hg:`share` | |
65 using the ``--relative`` option. | |
66 | |
67 The requirement was added in Mercurial 4.2 (released May 2017). | |
68 | |
58 dotencode | 69 dotencode |
59 ========= | 70 ========= |
60 | 71 |
61 The *dotencode* repository layout should be used. | 72 The *dotencode* repository layout should be used. |
62 | 73 |