Fossil SCM

Bring behavior and comments closer toghether, hopefully right this time.

jan.nijtmans 2015-06-26 20:28 undo-clean
Commit cc34dcb747cd91bd61c76274930cd21fffdc7fe2
1 file changed +3 -3
+3 -3
--- src/checkin.c
+++ src/checkin.c
@@ -646,12 +646,12 @@
646646
**
647647
** The --verily option ignores the keep-glob and ignore-glob settings
648648
** and turns on --force, --dotfiles, and --emptydirs. Use the --verily
649649
** option when you really want to clean up everything.
650650
**
651
-** If a source tree is cleaned accidently, it can be restored using
652
-** the "fossil undo" command, except when the -f|--force flag is used.
651
+** If a source tree is cleaned accidentally, it can be restored using
652
+** the "fossil undo" command, except for files matching ignore-glob.
653653
**
654654
** Options:
655655
** --allckouts Check for empty directories within any checkouts
656656
** that may be nested within the current one. This
657657
** option should be used with great care because the
@@ -704,11 +704,11 @@
704704
}
705705
if( !dryRunFlag ){
706706
dryRunFlag = find_option("whatif",0,0)!=0;
707707
}
708708
allFileFlag = allDirFlag = forceFlag = find_option("force","f",0)!=0;
709
- if( !forceFlag && !dryRunFlag ){
709
+ if( !dryRunFlag ){
710710
undo_capture_command_line();
711711
}
712712
dirsOnlyFlag = find_option("dirsonly",0,0)!=0;
713713
emptyDirsFlag = find_option("emptydirs","d",0)!=0 || dirsOnlyFlag;
714714
if( find_option("dotfiles",0,0)!=0 ) scanFlags |= SCAN_ALL;
715715
--- src/checkin.c
+++ src/checkin.c
@@ -646,12 +646,12 @@
646 **
647 ** The --verily option ignores the keep-glob and ignore-glob settings
648 ** and turns on --force, --dotfiles, and --emptydirs. Use the --verily
649 ** option when you really want to clean up everything.
650 **
651 ** If a source tree is cleaned accidently, it can be restored using
652 ** the "fossil undo" command, except when the -f|--force flag is used.
653 **
654 ** Options:
655 ** --allckouts Check for empty directories within any checkouts
656 ** that may be nested within the current one. This
657 ** option should be used with great care because the
@@ -704,11 +704,11 @@
704 }
705 if( !dryRunFlag ){
706 dryRunFlag = find_option("whatif",0,0)!=0;
707 }
708 allFileFlag = allDirFlag = forceFlag = find_option("force","f",0)!=0;
709 if( !forceFlag && !dryRunFlag ){
710 undo_capture_command_line();
711 }
712 dirsOnlyFlag = find_option("dirsonly",0,0)!=0;
713 emptyDirsFlag = find_option("emptydirs","d",0)!=0 || dirsOnlyFlag;
714 if( find_option("dotfiles",0,0)!=0 ) scanFlags |= SCAN_ALL;
715
--- src/checkin.c
+++ src/checkin.c
@@ -646,12 +646,12 @@
646 **
647 ** The --verily option ignores the keep-glob and ignore-glob settings
648 ** and turns on --force, --dotfiles, and --emptydirs. Use the --verily
649 ** option when you really want to clean up everything.
650 **
651 ** If a source tree is cleaned accidentally, it can be restored using
652 ** the "fossil undo" command, except for files matching ignore-glob.
653 **
654 ** Options:
655 ** --allckouts Check for empty directories within any checkouts
656 ** that may be nested within the current one. This
657 ** option should be used with great care because the
@@ -704,11 +704,11 @@
704 }
705 if( !dryRunFlag ){
706 dryRunFlag = find_option("whatif",0,0)!=0;
707 }
708 allFileFlag = allDirFlag = forceFlag = find_option("force","f",0)!=0;
709 if( !dryRunFlag ){
710 undo_capture_command_line();
711 }
712 dirsOnlyFlag = find_option("dirsonly",0,0)!=0;
713 emptyDirsFlag = find_option("emptydirs","d",0)!=0 || dirsOnlyFlag;
714 if( find_option("dotfiles",0,0)!=0 ) scanFlags |= SCAN_ALL;
715

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button