[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: plans to restore deleted files from subclipse and provide context menu for affected paths in dir rev history

From: Mark Phippard <markp_at_softlanding.com>
Date: 2005-10-30 20:50:59 CET

> For deleted files why not provide context menu for
> "restoring" from entries in the "affected path table".
>
> Use case is as follows:
>
> - Invoke resource history on a directory
> - select the revision from the history
> (this will automatically update the "affected path
> table" - current functionality)
> - right click a deleted path - which display a
> context menu letting you restore that entry.
>
> Restore should automatically take selected revision
> minus one and do a svn copy from the repository ?
>
> Can this be done ?

Probably. The code definitely presents some challenges though as I think
the data would have to be heavily "massaged" to get in the right format for
the API. In some case some assumptions would possibly have to be made as
well.

As a first step, I would like to see the ability to right-click on a
revision in the History and initiate a reverse-merge of that revision.
There are less challenges in implementing that option as all of the
"context" you need to run the API is already available. The use-case of
reversing an entire revision is just as valid as doing a single file from a
revision. In the end, both are valid and should be implemented.

In either case, the code should do a reverse merge, not a copy. The option
is really about undoing the change for a revision. When the change was a
delete, then that is restoring a file and copy would work. But it is just
as valid to simply undo a change, and in that case, only the reverse merge
works. Since the reverse merge works in both cases, the option should just
always use it.

Anyway, it is a good idea. Feel free to file an issue. Hopefully someone
will feel motivated to implement it. We have had a couple of different
people submit patches for this view in the past, so perhaps one of them
will step up and offer to do this. I think the case of backing out a
revision is probably not too difficuly to implement, adding options to the
files will be a lot more complicated but is likely doable.

Mark

_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________
Received on Mon Oct 31 06:50:59 2005

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.