314 -C clean all unknown/ignored files on target |
314 -C clean all unknown/ignored files on target |
315 (implies -n for testing; use option -f to confirm) |
315 (implies -n for testing; use option -f to confirm) |
316 -F RULE add rsync filter RULE (e.g. "protect /foo" to avoid deletion) |
316 -F RULE add rsync filter RULE (e.g. "protect /foo" to avoid deletion) |
317 -R ROOT explicit repository root directory |
317 -R ROOT explicit repository root directory |
318 (default: implicit from current directory) |
318 (default: implicit from current directory) |
319 -T thorough check of file content (default: time and size) |
319 -T thorough treatment of file content and directory times |
320 -f force changes: no dry-run |
320 -f force changes: no dry-run |
321 -n no changes: dry-run |
321 -n no changes: dry-run |
322 -r REV explicit revision (default: state of working directory) |
322 -r REV explicit revision (default: state of working directory) |
323 -v verbose |
323 -v verbose |
324 |
324 |
347 |
347 |
348 \<^medskip> Option \<^verbatim>\<open>-R\<close> specifies an explicit repository root directory. The default |
348 \<^medskip> Option \<^verbatim>\<open>-R\<close> specifies an explicit repository root directory. The default |
349 is to derive it from the current directory, searching upwards until a |
349 is to derive it from the current directory, searching upwards until a |
350 suitable \<^verbatim>\<open>.hg\<close> directory is found. |
350 suitable \<^verbatim>\<open>.hg\<close> directory is found. |
351 |
351 |
352 \<^medskip> Option \<^verbatim>\<open>-T\<close> indicates a thorough check of file content; the default is to |
352 \<^medskip> Option \<^verbatim>\<open>-T\<close> indicates thorough treatment of file content and directory |
353 consider files with equal time and size already as equal. |
353 times. The default is to consider files with equal time and size already as |
|
354 equal, and to ignore time stamps on directories. |
354 \<close> |
355 \<close> |
355 |
356 |
356 subsubsection \<open>Examples\<close> |
357 subsubsection \<open>Examples\<close> |
357 |
358 |
358 text \<open> |
359 text \<open> |
359 Synchronize the current repository onto a remote host, with accurate |
360 Synchronize the current repository onto a remote host, with accurate |
360 treatment of all files (concerning comparison and deletion on target): |
361 treatment of all content: |
361 @{verbatim [display] \<open> isabelle hg_sync -T -C remotename:test/repos\<close>} |
362 @{verbatim [display] \<open> isabelle hg_sync -T -C remotename:test/repos\<close>} |
362 |
363 |
363 So far, this is only a dry run. In a realistic situation, it requires |
364 So far, this is only a dry run. In a realistic situation, it requires |
364 consecutive options \<^verbatim>\<open>-C -f\<close> as confirmation. |
365 consecutive options \<^verbatim>\<open>-C -f\<close> as confirmation. |
365 \<close> |
366 \<close> |