Fossil SCM

Let --keep/"keep-glob" survive a --verily (contrary to --ignore/"ignore-glob")

jan.nijtmans 2015-04-29 07:57 UTC trunk
Commit 32ed3663a1a6cdd198d6bd07b2e35cef94c8dfb1
1 file changed +5 -5
+5 -5
--- src/checkin.c
+++ src/checkin.c
@@ -659,17 +659,18 @@
659659
** therefore, directories that contain only files
660660
** that were removed will be removed as well.
661661
** -f|--force Remove files without prompting.
662662
** -x|--verily Remove everything that is not a managed file or
663663
** the repository itself. Implies -f --emptydirs
664
-** --dotfiles --ignore '' --keep ''.
664
+** --dotfiles --ignore ''.
665665
** --clean <CSG> Never prompt for files matching this
666666
** comma separated list of glob patterns.
667667
** --ignore <CSG> Ignore files matching patterns from the
668668
** comma separated list of glob patterns.
669
-** --keep <CSG> Keep files matching this comma separated
670
-** list of glob patterns.
669
+** --keep <CSG> Ignore files matching this comma separated
670
+** list of glob patterns too, but this option
671
+** even survives the --verily option.
671672
** -n|--dry-run If given, display instead of run actions.
672673
** --temp Remove only Fossil-generated temporary files.
673674
** -v|--verbose Show all files as they are removed.
674675
**
675676
** See also: addremove, extras, status
@@ -703,18 +704,17 @@
703704
db_must_be_within_tree();
704705
if( find_option("verily","x",0)!=0 ){
705706
verilyFlag = allFileFlag = allDirFlag = 1;
706707
emptyDirsFlag = 1;
707708
scanFlags |= SCAN_ALL;
708
- zKeepFlag = 0;
709709
zIgnoreFlag = 0;
710710
zCleanFlag = 0;
711711
}
712712
if( zIgnoreFlag==0 && !verilyFlag ){
713713
zIgnoreFlag = db_get("ignore-glob", 0);
714714
}
715
- if( zKeepFlag==0 && !verilyFlag ){
715
+ if( zKeepFlag==0 ){
716716
zKeepFlag = db_get("keep-glob", 0);
717717
}
718718
if( zCleanFlag==0 && !verilyFlag ){
719719
zCleanFlag = db_get("clean-glob", 0);
720720
}
721721
--- src/checkin.c
+++ src/checkin.c
@@ -659,17 +659,18 @@
659 ** therefore, directories that contain only files
660 ** that were removed will be removed as well.
661 ** -f|--force Remove files without prompting.
662 ** -x|--verily Remove everything that is not a managed file or
663 ** the repository itself. Implies -f --emptydirs
664 ** --dotfiles --ignore '' --keep ''.
665 ** --clean <CSG> Never prompt for files matching this
666 ** comma separated list of glob patterns.
667 ** --ignore <CSG> Ignore files matching patterns from the
668 ** comma separated list of glob patterns.
669 ** --keep <CSG> Keep files matching this comma separated
670 ** list of glob patterns.
 
671 ** -n|--dry-run If given, display instead of run actions.
672 ** --temp Remove only Fossil-generated temporary files.
673 ** -v|--verbose Show all files as they are removed.
674 **
675 ** See also: addremove, extras, status
@@ -703,18 +704,17 @@
703 db_must_be_within_tree();
704 if( find_option("verily","x",0)!=0 ){
705 verilyFlag = allFileFlag = allDirFlag = 1;
706 emptyDirsFlag = 1;
707 scanFlags |= SCAN_ALL;
708 zKeepFlag = 0;
709 zIgnoreFlag = 0;
710 zCleanFlag = 0;
711 }
712 if( zIgnoreFlag==0 && !verilyFlag ){
713 zIgnoreFlag = db_get("ignore-glob", 0);
714 }
715 if( zKeepFlag==0 && !verilyFlag ){
716 zKeepFlag = db_get("keep-glob", 0);
717 }
718 if( zCleanFlag==0 && !verilyFlag ){
719 zCleanFlag = db_get("clean-glob", 0);
720 }
721
--- src/checkin.c
+++ src/checkin.c
@@ -659,17 +659,18 @@
659 ** therefore, directories that contain only files
660 ** that were removed will be removed as well.
661 ** -f|--force Remove files without prompting.
662 ** -x|--verily Remove everything that is not a managed file or
663 ** the repository itself. Implies -f --emptydirs
664 ** --dotfiles --ignore ''.
665 ** --clean <CSG> Never prompt for files matching this
666 ** comma separated list of glob patterns.
667 ** --ignore <CSG> Ignore files matching patterns from the
668 ** comma separated list of glob patterns.
669 ** --keep <CSG> Ignore files matching this comma separated
670 ** list of glob patterns too, but this option
671 ** even survives the --verily option.
672 ** -n|--dry-run If given, display instead of run actions.
673 ** --temp Remove only Fossil-generated temporary files.
674 ** -v|--verbose Show all files as they are removed.
675 **
676 ** See also: addremove, extras, status
@@ -703,18 +704,17 @@
704 db_must_be_within_tree();
705 if( find_option("verily","x",0)!=0 ){
706 verilyFlag = allFileFlag = allDirFlag = 1;
707 emptyDirsFlag = 1;
708 scanFlags |= SCAN_ALL;
 
709 zIgnoreFlag = 0;
710 zCleanFlag = 0;
711 }
712 if( zIgnoreFlag==0 && !verilyFlag ){
713 zIgnoreFlag = db_get("ignore-glob", 0);
714 }
715 if( zKeepFlag==0 ){
716 zKeepFlag = db_get("keep-glob", 0);
717 }
718 if( zCleanFlag==0 && !verilyFlag ){
719 zCleanFlag = db_get("clean-glob", 0);
720 }
721

Keyboard Shortcuts

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