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

Re: Why do commands fail when a file is unknown to svn?

From: C.A.T.Magic <c.a.t.magic_at_gmx.at>
Date: 2004-03-04 21:39:27 CET

why not provide an extra flag like
   svn --ignore-unknown-files
?

btw, is there something like a
 ".svnrc" file like it is with the
 ".cvsrc" where you can put configurations
like zip compression rate etc. ?

----- Original Message -----
From: "John Peacock" <jpeacock@rowman.com>
To: "Nicolás Lichtmaier" <jnl@synapsis-sa.com.ar>
Cc: <users@subversion.tigris.org>; <dev@subversion.tigris.org>
Sent: Thursday, March 04, 2004 21:31
Subject: Re: Why do commands fail when a file is unknown to svn?

> Nicolás Lichtmaier wrote:
>
> > Besides, SVN doesn't complain when trying to commit an up-to-date
> > file... according to you.. shoud that be changed? I think that's a
> > similar case.
>
> Not at all; the up-to-date file is already known, but it doesn't need
anything
> done to it, so this is a guaranteed harmless state. Trying to commit a
file
> which doesn't already exist in the repository is not always completely
harmless.
>
> Either:
>
> 1) The file _should_ be in the repository, so by erroring out, you can add
it
> and then commit it along with the other files in this changeset;
>
> 2) The file _shouldn't_ be in the repository, in which case your selection
of
> files on the command line was in error.
>
> Just because you _could_ do something in CVS doesn't make that behavior
better;
> I suspect this was probably a conscious choice to raise this to an error
instead
> of a warning (to prevent case #1 above). There are probably a number of
things
> in CVS which people got used to using due to laziness, rather than it
being a
> good feature.
>
> That being said, you could request an enhancement to warn on unknown files
> (--warn-unknown???) instead of erroring out. It's also quite easy to
write a
> little script to construct the appropriate commandline.
>
> John
>
> --
> John Peacock
> Director of Information Research and Technology
> Rowman & Littlefield Publishing Group
> 4501 Forbes Boulevard
> Suite H
> Lanham, MD 20706
> 301-459-3366 x.5010
> fax 301-429-5748
>
> ---------------------------------------------------------------------
> 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 Mar 4 21:38:53 2004

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