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

Re: svn:ignore

From: Eli Barzilay <eli_at_barzilay.org>
Date: 2005-05-31 03:24:44 CEST

On May 30, Ben Collins-Sussman wrote:
>
> On May 30, 2005, at 7:24 PM, Eli Barzilay wrote:
>
> >
> > I didn't see that in the `add' and `import' references, and also not
> > in the `svn:ignore' section -- am I looking in the wrong place?
> >
>
> Are we reading the same thing? There's only one place in the book
> that documents svn:ignore:
>
> http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.3.3

Ugh, apparently I've managed to miss the mentions of `add' and
`import'. But there are still issues I have with that description,
which might be why I missed it:

1. Ignoring `global-ignores', I don't see how svn:ignore can affect
   `add' and `import' -- first, `svn add foo.bar' will always work
   even if there is a "*.bar" pattern in `svn:ignore', so for adding
   files it makes no difference. Second, since the property applies
   only for the directory it is on, then adding a whole directory will
   work the same too (the directory is added no matter what its name
   is, and sub-files are added since the directory is no so it has no
   properties yet).

2. Same for `import'.

3. I'd expect that any such behavior would be documented in their
   reference sections. (Which is where I searched after your previous
   message...)

> > What I didn't realize, and couldn't find any docs for, is the fact
> > that no matter what you put in svn:ignore, it will not have any bad
> > effects on existing versioned files and future versioned stuff. (It
> > seems like a good behavior, and it seemed like this is the way svn
> > works -- I just couldn't find it documented explicitly.)
>
> Correct, it only affects how subversion treats unversioned things.
> But I'm not sure why we'd need to document that it has *no* effect
> on versioned things; the very first paragraph in svn:ignore docs
> says:
>
> "[...] it works in conjunction with the global-ignores run-time
> configuration option [...] to filter unversioned files and
> directories out of commands svn status, svn add, and svn import."
>
> ...and then goes on to talk only about unversioned things. After
> reading this section, were you left with doubts that it somehow
> endangered versioned objects?

Well, I certainly didn't expect things to vanish... What I didn't get
from just the documentation is the fact that (with a "*.bar" pattern)
something like "svn add foo.bar" will work. After trying it out I
know that it does work, but I now don't know how would the ignore
property ever affect `add'/`import'.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 31 03:26:23 2005

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.