Reputation: 27119
I have an existing project repo which I use for project A, and has some files and directories excluded from it using svn:ignore. I want to start another project (project B), in a new repo, with approximately the same files ignored in it.
How can I get a list of all files in the repo with svn:ignore set on them and the value of that property? I am using Ubuntu, so sed and grep away if that helps.
Thanks, Joe
Upvotes: 20
Views: 12509
Reputation: 15982
svn propget -R svn:ignore
Output looks like:
path/to/dir1 - *.exe
*~
path/to/dir2 - #*
path/to/dir3 - ...etc...
Upvotes: 35
Reputation: 603
Try:
svn st --no-ignore | grep '^I'
to find the externals.
if you need to find all the svn directories, try:
find . -name .svn -print0 | xargs -0 -n1 dirname
You could try
find . -name .svn -print0 | xargs -0 -n1 dirname | xargs svn pg svn:ignore
to get all the externals, but the output will look something like:
docs - _*
mwbuild - _*
local-settings
*.pyc
i.e., not split along line boundaries. Maybe more sed/awk magic would make that behave?
Upvotes: 5