X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/4a65fe72194786c578193b0c6f44efa852fb387b..6dca00254adc64ba87f07ff1c959766a67d764c7:/cvs-entries.diff diff --git a/cvs-entries.diff b/cvs-entries.diff index f0cb813..e61a34e 100644 --- a/cvs-entries.diff +++ b/cvs-entries.diff @@ -2,9 +2,15 @@ This patch causes the --cvs-exclude option to prefix the names listed in each dir's CVS/Entries file as per-dir includes before the dir's list of excludes taken from the .cvsignore file. ---- orig/exclude.c 2006-01-28 00:16:01 -+++ exclude.c 2005-12-17 21:18:38 -@@ -221,6 +221,8 @@ static void add_rule(struct filter_list_ +To use this patch, run these commands for a successful build: + + patch -p1 head = lp->tail = NULL; @@ -13,7 +19,7 @@ of excludes taken from the .cvsignore file. if (asprintf(&lp->debug_type, " [per-dir %s]", cp) < 0) out_of_memory("add_rule"); ret->u.mergelist = lp; -@@ -454,6 +456,14 @@ void *push_local_filters(const char *dir +@@ -449,6 +451,14 @@ void *push_local_filters(const char *dir set_filter_dir(dir, dirlen); } @@ -28,7 +34,7 @@ of excludes taken from the .cvsignore file. if (strlcpy(dirbuf + dirbuf_len, ex->pattern, MAXPATHLEN - dirbuf_len) < MAXPATHLEN - dirbuf_len) { parse_filter_file(lp, dirbuf, ex->match_flags, -@@ -970,6 +980,7 @@ void parse_filter_file(struct filter_lis +@@ -1005,6 +1015,7 @@ void parse_filter_file(struct filter_lis char line[BIGPATHBUFLEN]; char *eob = line + sizeof line - 1; int word_split = mflags & MATCHFLG_WORD_SPLIT; @@ -36,7 +42,7 @@ of excludes taken from the .cvsignore file. if (!fname || !*fname) return; -@@ -1016,6 +1027,24 @@ void parse_filter_file(struct filter_lis +@@ -1051,6 +1062,24 @@ void parse_filter_file(struct filter_lis } break; } @@ -61,7 +67,7 @@ of excludes taken from the .cvsignore file. if (word_split && isspace(ch)) break; if (eol_nulls? !ch : (ch == '\n' || ch == '\r')) -@@ -1025,13 +1054,15 @@ void parse_filter_file(struct filter_lis +@@ -1060,13 +1089,15 @@ void parse_filter_file(struct filter_lis else overflow = 1; } @@ -78,9 +84,9 @@ of excludes taken from the .cvsignore file. parse_rule(listp, line, mflags, xflags); if (ch == EOF) break; ---- orig/rsync.h 2006-01-30 20:39:09 -+++ rsync.h 2005-12-17 19:52:48 -@@ -116,6 +116,7 @@ +--- old/rsync.h ++++ new/rsync.h +@@ -132,6 +132,7 @@ #define XFLG_OLD_PREFIXES (1<<1) #define XFLG_ANCHORED2ABS (1<<2) #define XFLG_ABS_IF_SLASH (1<<3) @@ -88,9 +94,9 @@ of excludes taken from the .cvsignore file. #define ATTRS_REPORT (1<<0) #define ATTRS_SKIP_MTIME (1<<1) ---- orig/testsuite/exclude.test 2006-01-26 22:14:14 -+++ testsuite/exclude.test 2005-12-30 07:32:41 -@@ -21,6 +21,7 @@ set -x +--- old/testsuite/exclude.test ++++ new/testsuite/exclude.test +@@ -19,6 +19,7 @@ export CVSIGNORE makepath "$fromdir/foo/down/to/you" makepath "$fromdir/foo/sub" @@ -98,7 +104,7 @@ of excludes taken from the .cvsignore file. makepath "$fromdir/bar/down/to/foo/too" makepath "$fromdir/bar/down/to/bar/baz" makepath "$fromdir/mid/for/foo/and/that/is/who" -@@ -59,6 +60,9 @@ echo cvsout >"$fromdir/bar/down/to/foo/f +@@ -57,6 +58,9 @@ echo cvsout >"$fromdir/bar/down/to/foo/f echo gone >"$fromdir/bar/down/to/foo/file3" echo lost >"$fromdir/bar/down/to/foo/file4" echo weird >"$fromdir/bar/down/to/foo/+ file3" @@ -108,7 +114,7 @@ of excludes taken from the .cvsignore file. echo cvsout-but-filtin >"$fromdir/bar/down/to/foo/file4.junk" echo smashed >"$fromdir/bar/down/to/foo/to" cat >"$fromdir/bar/down/to/bar/.filt2" <"$excl" <"$excl" <"$scratchdir/.cvsignore" <