You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Markus Schaber <m....@3s-software.com> on 2011/09/09 14:06:21 UTC

"svn revert --depth=files"

Hi,

In a working copy, "svn delete" a directory which contains files.

Then do "svn revert --depth=files path/to/directory".

As far as I can remember, this did revert the directory as well as the
deleted files in SVN 1.6.

It only reverts the deleted directory in SVN 1.7, leaving the files
marked as deleted.

Best regards

Markus Schaber

___________________________
We software Automation.

3S-Smart Software Solutions GmbH
Markus Schaber | Developer
Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 |
Fax +49-831-54031-50

Email: m.schaber@3s-software.com | Web: http://www.3s-software.com 
CoDeSys internet forum: http://forum.3s-software.com
Download CoDeSys sample projects:
http://www.3s-software.com/index.shtml?sample_projects

Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner |
Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 


AW: "svn revert --depth=files"

Posted by Markus Schaber <m....@3s-software.com>.
Hi,


Von: Markus Schaber [mailto:m.schaber@3s-software.com]

> It even is more strange: If I do "svn revert --depth=files foo/bar
foo",
> then only the directory foo is reverted, and the file bar is not
restored.

This also displays no warning that foo/bar is ignored.

In addition, if I do "svn revert foo/bar", it silently does nothing.

So to revert the file and the directory, I need to do "svn revert
--depth=files foo foo/bar". AFAIR,This seems to be in contrast to the
behavior of SVN 1.6 which brought an error message because bar was about
to be reverted twice.

This change in behavior breaks my CoDeSys integration - this is not a
problem, I'm just fixing it in my code, but it may break other scripts
and tools relying on the old behavior.

Thanks,
Markus
 
> Von: Daniel Shahaf [mailto:d.s@daniel.shahaf.name]
> >
> > --depth=immediates properly reverts all children of the deleted
> directory.
> 
> But this also restores sibling directories to the file I want to
restore,
> right?
> 
> > Markus Schaber wrote on Fri, Sep 09, 2011 at 14:06:21 +0200:
> > > Hi,
> > >
> > > In a working copy, "svn delete" a directory which contains files.
> > >
> > > Then do "svn revert --depth=files path/to/directory".
> > >
> > > As far as I can remember, this did revert the directory as well as
> the
> > > deleted files in SVN 1.6.
> > >
> > > It only reverts the deleted directory in SVN 1.7, leaving the
files
> > > marked as deleted.
> > >


Best regards

Markus Schaber

___________________________
We software Automation.

3S-Smart Software Solutions GmbH
Markus Schaber | Developer
Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 |
Fax +49-831-54031-50

Email: m.schaber@3s-software.com | Web: http://www.3s-software.com 
CoDeSys internet forum: http://forum.3s-software.com
Download CoDeSys sample projects:
http://www.3s-software.com/index.shtml?sample_projects

Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner |
Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 


Re: "svn revert --depth=files"

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Markus Schaber wrote on Fri, Sep 09, 2011 at 14:20:28 +0200:
> Von: Daniel Shahaf [mailto:d.s@daniel.shahaf.name]
> > 
> > --depth=immediates properly reverts all children of the deleted
> > directory.
> 
> But this also restores sibling directories to the file I want to
> restore, right?

Of course; they are different things.  I was merely pointing that only
svn_depth_files but not svn_depth_immediates is broken.  

AW: "svn revert --depth=files"

Posted by Markus Schaber <m....@3s-software.com>.
Hi, Daniel,

It even is more strange: If I do "svn revert --depth=files foo/bar foo",
then only the directory foo is reverted, and the file bar is not
restored.

Von: Daniel Shahaf [mailto:d.s@daniel.shahaf.name]
> 
> --depth=immediates properly reverts all children of the deleted
directory.

But this also restores sibling directories to the file I want to
restore, right?

> Markus Schaber wrote on Fri, Sep 09, 2011 at 14:06:21 +0200:
> > Hi,
> >
> > In a working copy, "svn delete" a directory which contains files.
> >
> > Then do "svn revert --depth=files path/to/directory".
> >
> > As far as I can remember, this did revert the directory as well as
the
> > deleted files in SVN 1.6.
> >
> > It only reverts the deleted directory in SVN 1.7, leaving the files
> > marked as deleted.
> >


Best regards

Markus Schaber

___________________________
We software Automation.

3S-Smart Software Solutions GmbH
Markus Schaber | Developer
Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 |
Fax +49-831-54031-50

Email: m.schaber@3s-software.com | Web: http://www.3s-software.com 
CoDeSys internet forum: http://forum.3s-software.com
Download CoDeSys sample projects:
http://www.3s-software.com/index.shtml?sample_projects

Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner |
Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915

Re: "svn revert --depth=files"

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
--depth=immediates properly reverts all children of the deleted directory.

Markus Schaber wrote on Fri, Sep 09, 2011 at 14:06:21 +0200:
> Hi,
> 
> In a working copy, "svn delete" a directory which contains files.
> 
> Then do "svn revert --depth=files path/to/directory".
> 
> As far as I can remember, this did revert the directory as well as the
> deleted files in SVN 1.6.
> 
> It only reverts the deleted directory in SVN 1.7, leaving the files
> marked as deleted.
> 
> Best regards
> 
> Markus Schaber
> 
> ___________________________
> We software Automation.
> 
> 3S-Smart Software Solutions GmbH
> Markus Schaber | Developer
> Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 |
> Fax +49-831-54031-50
> 
> Email: m.schaber@3s-software.com | Web: http://www.3s-software.com 
> CoDeSys internet forum: http://forum.3s-software.com
> Download CoDeSys sample projects:
> http://www.3s-software.com/index.shtml?sample_projects
> 
> Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner |
> Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 
>