Re: Recursively reverting files

Mark Phippard <[email protected]> Fri, 26 Feb 2016 16:06:51 -0500
Newsgroups gmane.comp.version-control.subversion.subclipse.user
Message-ID <CAHFaGCrXrMGvLTiqOsPugmdZcWK1uh_ThyerRWev7KyB1xu47g@mail.gmail.com>
------=_Part_14495_420874403.1456520818159
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

On Fri, Feb 26, 2016 at 3:54 PM, Jacob Weber <[email protected]> wrote:

> Reverting a bit change in Subclipse is kind of a nightmare -- you have to
> go through several rounds of Team > Revert, each one slowly reverting one
> file at a time. There's got to be a better way.
>

I cannot recall a single occasion in 10+ years I have had to do this.  So
what is the specific scenario you have where this is necessary?  Please
provide more details.  How does TortoiseSVN handle the same situation?


> I took a look at:
> http://subclipse.tigris.org/issues/show_bug.cgi?id=1303
>
> and I'm aware of the UI issues it mentions. But it seems like:
>
> - if it's going to revert each selected file individually, it could still
> pass -R when reverting each one, so that if it's a directory, its contents
> will be reverted. This would especially help when you deleted a nested
> directory, and each Revert command just restores one layer of files, but
> not its children.
>
> - in the dialog, if you select all files in a directory, it could revert
> the directory itself. The UI already makes it look like it will do this, by
> checking the directory when you check its files.
>


The main issue with reverting a directory is we have to be careful to not
inadvertently revert the children when that is not desired.  For example if
you are reverting a property change on a folder, but do not want to revert
the content changes in all files beneath the folder too.

If the folder is scheduled-add, then it should be safe to revert it
recursively since you cannot revert the folder without the children anyway.

-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/

------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=3163122

To unsubscribe from this discussion, e-mail: [[email protected]].
------=_Part_14495_420874403.1456520818159
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Fri, Feb 26, 2016 at 3:54 PM, Jacob Weber <span dir=3D"=
ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">jacob@ja=
cobweber.com</a>&gt;</span> wrote:<br><div class=3D"gmail_extra"><div class=
=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex">Reverting a bit change in S=
ubclipse is kind of a nightmare -- you have to go through several rounds of=
 Team &gt; Revert, each one slowly reverting one file at a time. There&#39;=
s got to be a better way.<br></blockquote><div><br></div><div>I cannot reca=
ll a single occasion in 10+ years I have had to do this.=C2=A0 So what is t=
he specific scenario you have where this is necessary?=C2=A0 Please provide=
 more details.=C2=A0 How does TortoiseSVN handle the same situation?</div><=
div><br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;=
border-left:1px #ccc solid;padding-left:1ex">
<br>
I took a look at:<br>
<a href=3D"http://subclipse.tigris.org/issues/show_bug.cgi?id=3D1303" rel=
=3D"noreferrer" target=3D"_blank">http://subclipse.tigris.org/issues/show_b=
ug.cgi?id=3D1303</a><br>
<br>
and I&#39;m aware of the UI issues it mentions. But it seems like:<br>
<br>
- if it&#39;s going to revert each selected file individually, it could sti=
ll pass -R when reverting each one, so that if it&#39;s a directory, its co=
ntents will be reverted. This would especially help when you deleted a nest=
ed directory, and each Revert command just restores one layer of files, but=
 not its children.<br>
<br>
- in the dialog, if you select all files in a directory, it could revert th=
e directory itself. The UI already makes it look like it will do this, by c=
hecking the directory when you check its files.<br></blockquote><div><br></=
div><div></div></div><div class=3D"gmail_extra"><br></div><div class=3D"gma=
il_extra">The main issue with reverting a directory is we have to be carefu=
l to not inadvertently revert the children when that is not desired.=C2=A0 =
For example if you are reverting a property change on a folder, but do not =
want to revert the content changes in all files beneath the folder too.</di=
v><div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">If the fo=
lder is scheduled-add, then it should be safe to revert it recursively sinc=
e you cannot revert the folder without the children anyway.</div><div><br><=
/div>-- <br><div class=3D"gmail_signature">Thanks<br><br>Mark Phippard<br><=
a href=3D"http://markphip.blogspot.com/" target=3D"_blank">http://markphip.=
blogspot.com/</a></div>
</div></div>

------=_Part_14495_420874403.1456520818159--