Using a changelist with the revet command

2010-11-19 Thread Giulio Troccoli
Hi,

I have found an odd behaviour with the revert command. Maybe it's intended, but 
I don't find it very intuitive. I'm using SVN 1.6.9.

If I have a changelist and I want to revert all changes made in all files in 
the changelist I would use the following

svn revert --changelist 

That doesn't work. Not only I have to add the --depth option, but I also have 
to specify the PATH, so something like

svn revert --depth infinity --changelist  .

I don't think either are necessary though. The good thing about changelist is 
that with one easy command you can work on many files at ones, even if they are 
in different directories. With the above command, you still can, but from the 
deepest common directory of all the files in the changelist.

The changelist has the full path of every file, so I would have though that the 
first command I tried would be enough.

What do you think?

G


Linedata Limited
Registered Office: 85 Gracechurch St., London, EC3V 0AA
Registered in England and Wales No 3475006 VAT Reg No 710 3140 03






Re: Using a changelist with the revet command

2010-11-19 Thread Daniel Shahaf
I think it's intentional.

If we change the first command to have the semantics of the second
command, wouldn't it mean that the second command is equivalent to
'svn revert -R ./'?

If yes, we can't change it --- rather bad compatibility surprised for
everyone who's used to 'svn revert --cl foo -R ./'.

Giulio Troccoli wrote on Fri, Nov 19, 2010 at 11:33:54 +:
> Hi,
> 
> I have found an odd behaviour with the revert command. Maybe it's
> intended, but I don't find it very intuitive. I'm using SVN 1.6.9.
> 
> If I have a changelist and I want to revert all changes made in all
> files in the changelist I would use the following
> 
> svn revert --changelist 
> 
> That doesn't work. Not only I have to add the --depth option, but
> I also have to specify the PATH, so something like
> 
> svn revert --depth infinity --changelist  .
> 
> I don't think either are necessary though. The good thing about
> changelist is that with one easy command you can work on many files at
> ones, even if they are in different directories. With the above
> command, you still can, but from the deepest common directory of all
> the files in the changelist.
> 
> The changelist has the full path of every file, so I would have though
> that the first command I tried would be enough.
> 
> What do you think?
> 
> G
> 
> 
> Linedata Limited Registered Office: 85 Gracechurch St., London, EC3V
> 0AA Registered in England and Wales No 3475006 VAT Reg No 710 3140 03
> 
> 
> 
>