Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100861 - patch for rsync 2.6.0 cvsignore bug (-C option), taken from 2.6.1
Summary: patch for rsync 2.6.0 cvsignore bug (-C option), taken from 2.6.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High major
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-30 21:22 UTC by awk
Modified: 2005-08-01 04:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
rsync-2.6.0-cvsignore.patch (rsync-2.6.0-cvsignore.patch,797 bytes, patch)
2005-07-30 21:24 UTC, awk
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description awk 2005-07-30 21:22:55 UTC
When the -C option is used with rsync (to honor exclude patterns in .cvsignore files), it's supposed to 
apply the patterns just to the subdirectory that the .cvsignore file is in, but due to a bug it applies them 
globally.

I have an app deployment script which uses rsync from a CVS checkout and this is a serious bug for me 
(imagine this with "--delete-excluded").. it was fixed in 2.6.1 but it seems gentoo is perpetually at 
2.6.0. However it's a one-line fix and I got it right out of rsync CVS.

Reproducible: Always
Steps to Reproduce:
cd /tmp
mkdir cvs-ignore-test
mkdir cvs-ignore-test/a cvs-ignore-test/b
echo "*.txt" > cvs-ignore-test/a/.cvsignore
echo foo > cvs-ignore-test/a/unimportant.txt
echo bar > cvs-ignore-test/b/IMPORTANT.txt

rsync -avC cvs-ignore-test/ cvs-ignore-test-copy/

cat cvs-ignore-test-copy/b/IMPORTANT.txt
Comment 1 awk 2005-07-30 21:24:35 UTC
Created attachment 64763 [details, diff]
rsync-2.6.0-cvsignore.patch
Comment 2 SpanKY gentoo-dev 2005-08-01 04:41:48 UTC
thanks, added to 2.6.0-r6