help: clarify when `$HG_URL` and `$HG_SOURCE` are added in hooks
authorAay Jay Chan <aayjaychan@itopia.com.hk>
Wed, 14 Apr 2021 00:38:25 +0800
changeset 46972 6904a9f33b30
parent 46971 a3720569a43f
child 46973 92029a43debb
help: clarify when `$HG_URL` and `$HG_SOURCE` are added in hooks Differential Revision: https://phab.mercurial-scm.org/D10400
mercurial/helptext/config.txt
--- a/mercurial/helptext/config.txt	Fri Apr 16 15:39:00 2021 +0200
+++ b/mercurial/helptext/config.txt	Wed Apr 14 00:38:25 2021 +0800
@@ -1161,12 +1161,12 @@
   status will cause the transaction to be rolled back. The reason for the
   transaction opening will be in ``$HG_TXNNAME``, and a unique identifier for
   the transaction will be in ``$HG_TXNID``. The rest of the available data will
-  vary according the transaction type. New changesets will add ``$HG_NODE``
-  (the ID of the first added changeset), ``$HG_NODE_LAST`` (the ID of the last
-  added changeset), ``$HG_URL`` and ``$HG_SOURCE`` variables.  Bookmark and
-  phase changes will set ``$HG_BOOKMARK_MOVED`` and ``$HG_PHASES_MOVED`` to
-  ``1`` respectively.  The number of new obsmarkers, if any, will be in
-  ``$HG_NEW_OBSMARKERS``, etc.
+  vary according the transaction type.  Changes unbundled to the repository will
+  add ``$HG_URL`` and ``$HG_SOURCE``.  New changesets will add ``$HG_NODE`` (the
+  ID of the first added changeset), ``$HG_NODE_LAST`` (the ID of the last added
+  changeset).  Bookmark and phase changes will set ``$HG_BOOKMARK_MOVED`` and
+  ``$HG_PHASES_MOVED`` to ``1`` respectively.  The number of new obsmarkers, if
+  any, will be in ``$HG_NEW_OBSMARKERS``, etc.
 
 ``pretxnclose-bookmark``
   Run right before a bookmark change is actually finalized. Any repository