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

Re: set svn:ignore on all unversioned files

From: Talden <talden_at_gmail.com>
Date: 2007-10-18 05:55:36 CEST

Could you just pass the result of "svn status" through a set of
filters to use as a file input to propset?

NOTE: I'm not familiar with the linux shell. With luck someone will
leap in and point out my incompetence ;)

This should ignore the unversioned files in the current folder.

  svn status --non-recursive . | grep ? | sed "s/\? *//" > ignore_file
  svn propset svn:ignore --file ignore_file .
  rm ignore_file

Realistically you probably want to review the ignore_file contents
first, introduce any generalisations and remove any excess, then set
the property.

--
Talden
On 10/18/07, eric <spamsink42@gmail.com> wrote:
> Hello,
>
> How do I tell subversion to ignore all unversioned files in the working copy?
>
> I import a source code tree.  Then I check out the new code and run a
> build.  Then I run 'svn status' and it shows hundreds of ? files.  I
> haven't changed any versioned files, all of these unversioned files
> are incidental files from the build and should be ignored.  The only
> way I know to ignore them is to do...
>
> svn propedit svn:ignore [directory]
>
> ... for every directory in the tree, each time adding in the list of
> unversioned files in that directory.
>
> What I want to do is to cd to the root of the source tree and issue
> some command that tells svn to update the repository such that every
> unversioned file in the working copy is ignored, how do I do that?
>
> Thanks,
> Eric
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 18 05:55:55 2007

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.