You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Malcolm Rowe <ma...@farside.org.uk> on 2006/06/30 20:13:26 UTC

svn changelist --changelist

It occurs to me that 'svn changelist' should probably also accept the
--changelist option, allowing:

  svn changelist mynewchange --changelist mychange

to rename a changelist, and:

  svn changelist --clear --changelist mychange

to delete a changelist.

The syntax isn't the most elegant, to be sure, but it's an easy (and
logical) way to provide those two functions.

Regards,
Malcolm

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn changelist --changelist

Posted by Peter Samuelson <pe...@p12n.org>.
> [Malcolm Rowe]
> > It occurs to me that 'svn changelist' should probably also accept the
> > --changelist option, allowing:
> > 
> >   svn changelist mynewchange --changelist mychange
> > 
> > to rename a changelist

That intuitively tells me 'copy', not 'rename', the clist.

Also it strikes me that changelists have sub-commands which really
would be best expressed as actual sub-commands rather than options to
the one command:

  svn clist add mynewcl file1 file2 file3 dir1
  svn clist add mynewcl --clist myoldcl
  svn clist remove mynewcl file2
  svn clist clear mynewcl          # or svn clist remove --clear?

With three distinct verbs, it seems odd to have one be the 'default
action' and the other two only happen if you _modify_ the default
action with an option.


[Ben Collins-Sussman]
> On another note,  I'm starting to realize now that the '--changelist'
> switch is too long a name.

cl and clist both seem reasonable.  Or have changelist with cl as an
alias, much like propset -> ps.

Re: svn changelist --changelist

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 7/3/06, C. Michael Pilato <cm...@collab.net> wrote:
> Ben Collins-Sussman wrote:
> > +1.  I like it.
> >
> > On another note,  I'm starting to realize now that the '--changelist'
> > switch is too long a name.  I'm getting sick of typing it over and
> > over.  In perforce, the switch is just '-c', but we've already used
> > that in subversion.  So maybe we can just shorten '--changelist' to
> > '--cl'...?  The commandline client can parse both short and long form,
> > and map them both to the same opt_state field.
>
> -1.  Long option names are long because they carry enough information to be
> understood by folks not familiar with abbreviations.  While short in length,
> --cl or --clist are still of the "long option" type, but miss the mark on
> that understandability aspect.  Did you notice that we haven't used the -C
> (capital-C) short-opt yet?
>
> You're getting sick of typing --changelist over and over again because
> you're using this feature constantly as you design and test it.  I, on the
> other hand, have little interest the feature, and have probably only typed
> this option name once, and that was in the previous sentence.  :-)

Historically we've decided to hold off on using single letter flags
for new features until it's shown that the feature is actually used
often enough to justify it.

Ok, I admit it, I'm still bitter that --limit didn't get a short flag,
and if I can't have one then Ben can't either ;-)

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn changelist --changelist

Posted by "C. Michael Pilato" <cm...@collab.net>.
Ben Collins-Sussman wrote:
> (I'm surprised you have little interest in the feature!  ISTR that you
> often have 2 or 3 changelists going in a single working copy, and get
> annoyed trying to track them.)

I do often have 2 or 3 changelists going on a single working copy, but I
don't find it really so hard to track.  And most of the time (these days, at
least) my changelists have overlapping files, so I'm hand-editing patchfiles
 anyway.  :-(

-- 
C. Michael Pilato <cm...@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Re: svn changelist --changelist

Posted by Ben Collins-Sussman <su...@red-bean.com>.
On 7/3/06, C. Michael Pilato <cm...@collab.net> wrote:

> You're getting sick of typing --changelist over and over again because
> you're using this feature constantly as you design and test it.

Naw, I use changelists all day at work.  I run 'p4 diff -c', 'p4
revert -c', 'p4 submit -c'.  Nearly every command takes a changelist
argument.  So it feels slow to have to type --changelist instead of
'-c'.

But hey, you're right.  Let's wait and see how it turns out.  Unlike
garrett's --limit option (which only applies to log), the --changelist
can apply to 6 or 7 subcommands at least.  Maybe we can use capital -C
eventually.

(I'm surprised you have little interest in the feature!  ISTR that you
often have 2 or 3 changelists going in a single working copy, and get
annoyed trying to track them.)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn changelist --changelist

Posted by "C. Michael Pilato" <cm...@collab.net>.
Ben Collins-Sussman wrote:
> +1.  I like it.
> 
> On another note,  I'm starting to realize now that the '--changelist'
> switch is too long a name.  I'm getting sick of typing it over and
> over.  In perforce, the switch is just '-c', but we've already used
> that in subversion.  So maybe we can just shorten '--changelist' to
> '--cl'...?  The commandline client can parse both short and long form,
> and map them both to the same opt_state field.

-1.  Long option names are long because they carry enough information to be
understood by folks not familiar with abbreviations.  While short in length,
--cl or --clist are still of the "long option" type, but miss the mark on
that understandability aspect.  Did you notice that we haven't used the -C
(capital-C) short-opt yet?

You're getting sick of typing --changelist over and over again because
you're using this feature constantly as you design and test it.  I, on the
other hand, have little interest the feature, and have probably only typed
this option name once, and that was in the previous sentence.  :-)

-- 
C. Michael Pilato <cm...@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Re: svn changelist --changelist

Posted by Ben Collins-Sussman <su...@red-bean.com>.
+1.  I like it.

On another note,  I'm starting to realize now that the '--changelist'
switch is too long a name.  I'm getting sick of typing it over and
over.  In perforce, the switch is just '-c', but we've already used
that in subversion.  So maybe we can just shorten '--changelist' to
'--cl'...?  The commandline client can parse both short and long form,
and map them both to the same opt_state field.


On 6/30/06, Malcolm Rowe <ma...@farside.org.uk> wrote:
> It occurs to me that 'svn changelist' should probably also accept the
> --changelist option, allowing:
>
>   svn changelist mynewchange --changelist mychange
>
> to rename a changelist, and:
>
>   svn changelist --clear --changelist mychange
>
> to delete a changelist.
>
> The syntax isn't the most elegant, to be sure, but it's an easy (and
> logical) way to provide those two functions.
>
> Regards,
> Malcolm
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org