You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Molle Bestefich <mo...@gmail.com> on 2005/11/04 12:52:11 UTC
'svn purge' (was: [RFC] 'basic/additional command set')
Max Bowsher wrote:
> The need to keep our basic command set small, to avoid svn becoming daunting
> to new users, and making the learning curve intolerably steep, is not a new
> issue.
>
> I agree with it, but taken alone, it stops us adding useful utility
> subcommands - the sort of thing I am thinking of:
> svn purge: Remove unversioned files from a WC
Out of curiosity, what's the purpose of that?
I've done something sligthly similar, in order to clean up a working
copy to make it look like it did when I checked it out. Sort of like
'make clean', only using SVN to tell me what's source code and what's
compiler output.
Specifically, it removes files that are svn:ignore'd as opposed to
files that are not versioned. Thus it keeps any files and
modifications you've added to the WC yourself.
(Python script attached.)
Re: 'svn purge'
Posted by Branko Čibej <br...@xbc.nu>.
Molle Bestefich wrote:
> Branko Čibej wrote:
>
>> Molle Bestefich wrote:
>>
>>> I'd like to make the script do 'make clean' also, fx. by adding a
>>> 'svn:no-clean' property
>>>
>> Whatever you do, *do not* use property names starting with svn:! Those
>> are reserved for Subversion's own properties, not for some random script.
>>
>
> Hmm, why would it matter?
>
> I'd like to see 'svn purge' a part of subversion some day,
Right now, from what I see in this thread, we don't even know what "svn
purge" is supposed to do.
> and also
> it's a feature that builds on svn:ignore, so it makes sense to name it
> something svn:'y...
>
The svn: propery namespace is reserved for Subversion's use. Therefore
you shouldn't use it i a script that's not part of Subversion. It's as
simple as that.
Of course, it you do invade SVN's namespace, and we someday invent a
"svn purge" that uses the same property with different syntax and
semantics, I'll just say "I told you so, but you wouldn't listen" and
move on.
-- Brane
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: 'svn purge' (was: [RFC] 'basic/additional command set')
Posted by Molle Bestefich <mo...@gmail.com>.
Branko Čibej wrote:
> Molle Bestefich wrote:
> > I'd like to make the script do 'make clean' also, fx. by adding a
> > 'svn:no-clean' property
> Whatever you do, *do not* use property names starting with svn:! Those
> are reserved for Subversion's own properties, not for some random script.
Hmm, why would it matter?
I'd like to see 'svn purge' a part of subversion some day, and also
it's a feature that builds on svn:ignore, so it makes sense to name it
something svn:'y...
Re: 'svn purge' (was: [RFC] 'basic/additional command set')
Posted by Branko Čibej <br...@xbc.nu>.
Molle Bestefich wrote:
> I'd like to make the script do 'make clean' also, fx. by adding a
> 'svn:no-clean' property
Whatever you do, *do not* use property names starting with svn:! Those
are reserved for Subversion's own properties, not for some random script.
-- Brane
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: 'svn purge' (was: [RFC] 'basic/additional command set')
Posted by Molle Bestefich <mo...@gmail.com>.
Rainer Müller wrote:
> Max Bowsher wrote:
> > I am confused. First you ask "what's the purpose of that?", then you
> > proceed to explain exactly what the purpose is - something like "make
> > clean", but which you can confidently rely on to put a working copy back
> > into clean, "just-checked-out" status.
>
> "Just-checked-out" status does remove all added files. His Python script only
> removes files which match the svn:ignore pattern.
Yes. I think removing svn:ignore'd items is the better approach, less
likely to nuke files that the user does not want to vanish.
Max: Just wanted confirmation that the goal is the same and an
opinion on which method is the better.
And to share a script for others to potentially try out.
The script is actually more like 'make distclean' than 'make clean'.
'make clean' usually preserves build configuration files generated by
./configure or the user.
I'd like to make the script do 'make clean' also, fx. by adding a
'svn:no-clean' property to tell the script that when in non-dist
cleaning mode, some files should not be removed. I don't have commit
access to the repository I'm mainly using the script on (TortoiseSVN)
however, so I can't add any properties and thus haven't done that yet.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: 'svn purge' (was: [RFC] 'basic/additional command set')
Posted by Rainer Müller <mu...@gmx.de>.
Max Bowsher wrote:
> I am confused. First you ask "what's the purpose of that?", then you
> proceed to explain exactly what the purpose is - something like "make
> clean", but which you can confidently rely on to put a working copy back
> into clean, "just-checked-out" status.
"Just-checked-out" status does remove all added files. His Python script only
removes files which match the svn:ignore pattern.
Rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: 'svn purge' (was: [RFC] 'basic/additional command set')
Posted by Max Bowsher <ma...@ukf.net>.
Molle Bestefich wrote:
> Max Bowsher wrote:
>> The need to keep our basic command set small, to avoid svn becoming
>> daunting to new users, and making the learning curve intolerably steep,
>> is
>> not a new issue.
>>
>> I agree with it, but taken alone, it stops us adding useful utility
>> subcommands - the sort of thing I am thinking of:
>> svn purge: Remove unversioned files from a WC
>
> Out of curiosity, what's the purpose of that?
>
> I've done something sligthly similar, in order to clean up a working
> copy to make it look like it did when I checked it out. Sort of like
> 'make clean', only using SVN to tell me what's source code and what's
> compiler output.
>
> Specifically, it removes files that are svn:ignore'd as opposed to
> files that are not versioned. Thus it keeps any files and
> modifications you've added to the WC yourself.
>
> (Python script attached.)
I am confused. First you ask "what's the purpose of that?", then you proceed
to explain exactly what the purpose is - something like "make clean", but
which you can confidently rely on to put a working copy back into clean,
"just-checked-out" status.
Max.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org