From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexandru Harsanyi Newsgroups: gmane.emacs.devel Subject: Re: New VC mode -- review request Date: Thu, 4 Oct 2007 17:46:14 +0800 Message-ID: <34E094EC-EB00-4203-BDFF-0117F0169EE1@mac.com> References: <20071003103501.GA4997@thyrsus.com> <200710031431.l93EVfFZ021233@oogie-boogie.ics.uci.edu> <200710040224.l942OUb4013773@oogie-boogie.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1191491267 4453 80.91.229.12 (4 Oct 2007 09:47:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Oct 2007 09:47:47 +0000 (UTC) To: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 04 11:47:45 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IdNJ2-0003eV-R9 for ged-emacs-devel@m.gmane.org; Thu, 04 Oct 2007 11:47:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IdNIy-0003kW-FD for ged-emacs-devel@m.gmane.org; Thu, 04 Oct 2007 05:47:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IdNHi-0002js-6N for emacs-devel@gnu.org; Thu, 04 Oct 2007 05:46:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IdNHf-0002ik-LE for emacs-devel@gnu.org; Thu, 04 Oct 2007 05:46:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IdNHf-0002iD-0A for emacs-devel@gnu.org; Thu, 04 Oct 2007 05:46:19 -0400 Original-Received: from hosted04.westnet.com.au ([203.10.1.217]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IdNHe-00025L-06 for emacs-devel@gnu.org; Thu, 04 Oct 2007 05:46:18 -0400 Original-Received: from hosted04.westnet.com.au (hosted04.westnet.com.au [127.0.0.1]) by hosted04.westnet.com.au (Postfix) with SMTP id E20E621C787 for ; Thu, 4 Oct 2007 17:46:14 +0800 (WST) Original-Received: from [10.0.1.2] (dsl-58-7-87-129.wa.westnet.com.au [58.7.87.129]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by hosted04.westnet.com.au (Postfix) with ESMTP id 3C76F21C77C for ; Thu, 4 Oct 2007 17:46:13 +0800 (WST) In-Reply-To: <200710040224.l942OUb4013773@oogie-boogie.ics.uci.edu> X-Mailer: Apple Mail (2.752.2) X-STATE: 1 X-PMX-Branch: TNG-Outgoing X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80228 Archived-At: On 4 Oct 2007, at 10:24 AM, Dan Nicolaescu wrote: > Alexandru Harsanyi writes: > >> On 3 Oct 2007, at 10:31 PM, Dan Nicolaescu wrote: >> >>> >>>> vc-rollback = C-x v c >>> >>> Do 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.net > > Thanks, 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.