|
From: | Alexandru Harsanyi |
Subject: | Re: New VC mode -- review request |
Date: | Thu, 4 Oct 2007 17:46:14 +0800 |
On 4 Oct 2007, at 10:24 AM, Dan Nicolaescu wrote:
Alexandru Harsanyi <address@hidden> writes:On 3 Oct 2007, at 10:31 PM, Dan Nicolaescu wrote:vc-rollback = C-x v cDo you have an implementation for this function for any backend? It would be interesting to see it.The ClearCase backend implements it. See http://vc- clearcase.sourceforge.netThanks, but unfortunately I don't know much about ClearCase, so I won't be able to use that code to judge what can other backend do about this...
Well, ClearCase supports removing any file revision, so rollback is implemented by asking ClearCase to remove the current revision.
Maybe rollback can be implemented in a generic way by applying the reverse patch between the current and previous revisions of the file and than committing that change. This will not remove any revision from the repository but will have the effect on the file contents as a rollback.
Cheers, Alex.
[Prev in Thread] | Current Thread | [Next in Thread] |