Kernel "make clean" kills repo
Nathan Lynch
ntl at pobox.com
Sun Aug 7 13:32:27 CDT 2005
Nathan Lutchansky wrote:
>
> [~/hg] $ hg clone linux-2.6 linux-make-test
> [~/hg] $ cd linux-make-test/
> [~/hg/linux-make-test] $ ls -l .hg/data/.hgtags.d
> -rw-r--r-- 2 lutchann users 238 Jul 26 13:52 .hg/data/.hgtags.d
> [~/hg/linux-make-test] $ make clean
> [~/hg/linux-make-test] $ ls -l .hg/data/.hgtags.d
> ls: .hg/data/.hgtags.d: No such file or directory
> [~/hg/linux-make-test] $
>
> The kernel clean target removes all files in the tree starting with . and
> ending with .d, which trashes some files in the repo and makes Mercurial
> fairly unhappy.
I think this is the right way to fix it in the kernel Makefile.
diff -r 5be3d7aab675 -r 3b3c06767d01 Makefile
--- a/Makefile Thu Aug 4 17:36:25 2005
+++ b/Makefile Sun Aug 7 18:20:36 2005
@@ -374,8 +374,8 @@
# Files to ignore in find ... statements
-RCS_FIND_IGNORE := \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS -o -name .pc \) -prune -o
-RCS_TAR_IGNORE := --exclude SCCS --exclude BitKeeper --exclude .svn --exclude CVS --exclude .pc
+RCS_FIND_IGNORE := \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS -o -name .pc -o -name .hg \) -prune -o
+RCS_TAR_IGNORE := --exclude SCCS --exclude BitKeeper --exclude .svn --exclude CVS --exclude .pc --exclude .hg
# ===========================================================================
# Rules shared between *config targets and build targets
More information about the Mercurial
mailing list