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

Re: svn: Commit failed (details follow): 'file' is not under version control

From: Mark E. Hamilton <mhamilt_at_sandia.gov>
Date: Fri, 09 May 2008 17:11:54 -0600

Erik Huelsmann wrote:
> On Fri, May 9, 2008 at 9:15 PM, Mark E. Hamilton <mhamilt_at_sandia.gov> wrote:
>> The 'svn status *' and 'svn update *' both understand these three classes,
>> so my question is why doesn't 'svn -m Test commit *'? Why doesn't it ignore
>> the ignored files? Is there a situation in which this would be the wrong
>> thing to do?
> It doesn't ignore the ignored files, because ignored files are
> something specific to svn status/ svn add, not to commit. You can
> still explicitly add+commit ignored files. This is what svn is
> complaining about with your wildcarded command: the file is
> unversioned (be it ignored) and you can't commit unversioned files...

Thanks. I understand what you mean; I'm not sure I agree with it,
though. You can't (or shouldn't be able to) commit ignored files as well.

Basically, what I see happening is that the 'svn:ignore' property (or
global ignores) is obeyed when the command does not specify the file,
and ignored when the command does specify the file. Ie, 'svn
(status|update)' doesn't display the ignored files, 'svn (status|update)
*' does. Also, if I have ignored files in my working directory and do
'svn --force add .' it will ignore them, but if I do 'svn add *' it will
not ignore them. (And, of course, 'svn commit' ignores them and 'svn
commit *' doesn't.) I read the manual section on ignoring unversioned
items, and it doesn't really make this clear.

IMO, if a file/directory is ignored it should always be ignored. No
command should process it (though it's useful for 'svn status *' to show
them so that users can know they are ignored,) and I'd really like to
see 'svn commit' ignore them. This would really simplify committing
disjoint hierarchies with ignored files in the directory. Any file that
is ignored (either by svn:ignore or global ignores) could be explicitly
added using 'svn --no-ignore add some_ignored_file'.

I expect that we can live with they way it is, however. Thanks again.

Mark E. Hamilton
Orion International Technologies, Inc.
Sandia National Laboratory, NM.
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-05-10 01:12:26 CEST

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.