diff -r 904607aedc4b -r 4363ad65ad36 src/Doc/System/Misc.thy --- a/src/Doc/System/Misc.thy Sun May 29 17:37:43 2022 +0200 +++ b/src/Doc/System/Misc.thy Sun May 29 20:57:10 2022 +0200 @@ -303,9 +303,9 @@ section \Mercurial repository synchronization\ text \ - The @{tool_def hg_sync} tool synchronizes the working directory of a local - Mercurial repository with a target directory, using - \<^verbatim>\rsync\\<^footnote>\\<^url>\https://linux.die.net/man/1/rsync\\ notation for destinations. + The @{tool_def hg_sync} tool synchronizes a local Mercurial repository with + a target directory, using \<^verbatim>\rsync\\<^footnote>\\<^url>\https://linux.die.net/man/1/rsync\\ + notation for destinations. @{verbatim [display] \Usage: isabelle hg_sync [OPTIONS] TARGET @@ -318,15 +318,19 @@ (default: implicit from current directory) -f force changes: no dry-run -n no changes: dry-run + -r REV explicit revision (default: state of working directory) -v verbose - Synchronize Mercurial repository working directory with other TARGET, + Synchronize Mercurial repository with TARGET directory, which can be local or remote (using notation of rsync).\} The \<^verbatim>\TARGET\ specification can be a local or remote directory (via ssh), using \<^verbatim>\rsync\ notation (see examples below). The content is written directly into the target, \<^emph>\without\ creating a separate sub-directory. + \<^medskip> Option \<^verbatim>\-r\ specifies an explicit revision of the repository; the default + is the current state of the working directory (which might be uncommitted). + \<^medskip> Option \<^verbatim>\-v\ enables verbose mode. Option \<^verbatim>\-n\ enables ``dry-run'' mode: operations are only simulated and printed as in verbose mode. Option \<^verbatim>\-f\ disables ``dry-run'' mode and thus forces changes to be applied. @@ -341,8 +345,8 @@ \<^verbatim>\-P\ options may be given to accumulate protected entries. \<^medskip> Option \<^verbatim>\-R\ specifies an explicit repository root directory. The default - is to derive it from the current working directory, searching upwards until - a suitable \<^verbatim>\.hg\ directory is found. + is to derive it from the current directory, searching upwards until a + suitable \<^verbatim>\.hg\ directory is found. \ subsubsection \Examples\