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

Re: Feature request: svn clean

From: Erik Huelsmann <e.huelsmann_at_gmx.net>
Date: 2005-03-21 15:47:03 CET

> Hello,
>
> I'd like to stress this stuff - it would be _very_ usefull in automated
> builds environment (like ccnet.sf.net). Those environments could have alot
> of "build artifacts" that is unversioned files but have to begin with
> clean
> copy.

The fact that you are referring to those files as 'build artifacts' should
have given you a clue it might not have to do with your version control
tool.

> Should we leave cleanup for makefiles? No - we are suppose to
> prepare clean environment for builders.
Again, you indicate it has to do with building, not with version control.

> Delete all+fresh chekout is _very_ costy
> operation and "svn revert -R;svn update" works only sometimes.

Maybe you should create an out-of-tree build, or export a tree from your
working copy and build there. Blow it away when your build is done. Did you
know you can export working copies (ie without contact to the server)?

> Scripts? Ok - they work well. But! Our ccnet is writen in c# and should
> run
> at all platforms, so we'd not force Perl installation. Moreover it should
> work on Windows and other platforms where "rm" and "rmtree" commands are
> not
> present.

If you have a system which runs on all platforms, why not use it to write
your cleanup script/app?

> So portability issue. Of course - we could rewrite that script
> into
> c# and incorporate it into our product, but it's simmilar to reinvent the
> wheel (need to maintain the code twice)

> Is it pottentionally harmfull operation? I dont think so. In our case
> (automated environment) there are no files, which should be commited back
> to
> repository, so we know, all local files / changes should be discarded in
> any
> case.
I hate to tell you this, but this is not the use case for the majority of
working copies...

>In real working copies it could be different, but I think it is
> simmilar to revert [in fact what about impement it as revert switch (svn
> revert --clean)? ].
... which you seem quite aware of.

> So if I type "svn revert" or "svn clean" in mine wc,
> I'd like to remove mine local changes (that's why I type it, dont I?)

Local changes in versioned files, yes.

I'm having an extremely hard time thinking of a good reason why this belongs
in a version control tool. I can't find any. I'm sorry.

I'm sorry if this mail is a bit harsh, but I hope the
export-for-working-copies does help you a bit...

bye,

Erik.

-- 
"Happy ProMail" bis 24. März: http://www.gmx.net/de/go/promail
Zum 6. Geburtstag gibt's GMX ProMail jetzt 66 Tage kostenlos!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 21 16:06:48 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.