[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn:ignore and svn add *

From: Marcelo de Moraes Serpa <celoserpa_at_gmail.com>
Date: Wed, 13 Feb 2008 18:35:19 -0200

Thank you Andy! Executing "svn -R revert ." solved the mess I did with the
working copy.

I'm confused though. I don't usually commit just after I do some
modification in a file or svn add a file just after I create it. I prefer to
batch-commit and batch-add the files I modified and added (and also svn
remove files removed) . I used to do it on Windows with Tortoise but I'm not
sure on how to do it using the svn CLI client. Any hints?

Thanks!

On Feb 13, 2008 6:31 PM, Andy Levy <andy.levy_at_gmail.com> wrote:

> On Feb 13, 2008 3:23 PM, Marcelo de Moraes Serpa <celoserpa_at_gmail.com>
> wrote:
>
> > I have a directory tree like this:
> >
> > bin/
> > buildout.cfg
> > buildout.cfg.old
> > develop-debug/
> > develop-products/
> > eggs/
> > parts/
> > wiki/
> > bootstrap.py
> > datatransp.ldif
> > develop-eggs
> > downloads
> > EXTERNALS.txt
> > products/
> > src/
> > var/
> >
> > After some hours working, I want to add everything I added or modified
> > inside these dirs except for:
> > bin/
> > develop-debug/
> > eggs/
> > parts/
> > wiki/
> > var/
> >
> > So, what I did was to "svn propedit svn:externals . " and added this to
> the
> > list:
> > bin/
> > develop-debug/
> > eggs/
> > parts/
> > wiki/
> > var/
> >
> > However, when I run svn add *, all these dirs and its sub-contents get
> added
> > to the repository. What am I doing wrong?
>
> Your shell is expanding the asterisk, so svn sees:
>
> svn add dir1 dir2 file1 file2
>
> When svn is passed an explicit list of file/directory names,
> svn:ignore and global-ignores are overridden - I think the assumption
> is that since you are explicitly passing the name to SVN, you really
> do want it added, regardless of ignores.
>
> > Also, is there a way to undo the last operations you did on a working
> copy
> > (in this case, I added a bunch of unecessary data)?
>
> See svn help revert
>
Received on 2008-02-13 21:35:50 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.