On Dec 16, 2007 3:36 PM, Ben Collins-Sussman <sussman@red-bean.com> wrote:
> On Dec 16, 2007 1:17 PM, Brian W. Fitzpatrick <fitz@red-bean.com> wrote:
> > See ### comment below:
> >
> > $ svn cl moo doggie1.txt
> > Path 'doggie1.txt' is now a member of changelist 'moo'.
> >
> >
> > $ svn st --changelist moo
> >
> > --- Changelist 'moo':
> > doggie1.txt
> >
> >
> > ### The next line says it's removing doggie1.txt, but it adds it right back!
> > $ svn cl moo doggie1.txt
> > svn: warning: Removing 'doggie1.txt' from changelist 'moo'.
> > Path 'doggie1.txt' is now a member of changelist 'moo'.
>
> Right, we added the 'warning' line because people were worried that
> running 'svn cl NEWLIST path' could accidentally move a file from one
> changelist to another, without the user realizing it. So we added the
> warning to say "by the way, you realize this thing was already in a
> changelist, right?"
>
> What you're seeing here is the odd combination of the warning plus
> moving the thing to the changelist it was already in. Should we
> special case that edge-case to say "doggie1.txt is already a member of
> changelist 'moo'" ? Is that the confusion?
Absolutely--I read it as:
- WATCH OUT I'm removing this!
- Now I'm adding this
Very surprising to me.
> > $ svn st --changelist moo
> >
> > --- Changelist 'moo':
> > doggie1.txt
> >
> >
> > $ svn cl --remove doggie1.txt
> > Path 'doggie1.txt' is no longer a member of a changelist.
> >
> >
> > $ svn st --changelist moo
> > subversion/svn/status-cmd.c:230: (apr_err=200024)
> > svn: Unknown changelist 'moo'
>
> Sure, everything else is as expected. If you remove all paths from a
> changelist, the changelist ceases to exist.
I know--this was fine--I just left it here to show that everything
else worked as expected.
-Fitz
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Dec 17 05:33:23 2007