From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kourosh Neshatian Newsgroups: gmane.emacs.bugs Subject: bug#9123: bug/misbehaviour in vc-next action when stealing locks Date: Thu, 11 Aug 2011 18:43:22 +1200 Message-ID: References: <32089101.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1313045101 2029 80.91.229.12 (11 Aug 2011 06:45:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 11 Aug 2011 06:45:01 +0000 (UTC) Cc: 9123@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 11 08:44:57 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QrP0i-0003XF-Hi for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Aug 2011 08:44:56 +0200 Original-Received: from localhost ([::1]:44185 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrP0h-0002zn-IX for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Aug 2011 02:44:55 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrP0b-0002zU-Pe for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2011 02:44:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrP0X-0003gm-N5 for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2011 02:44:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrP0X-0003gi-KG for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2011 02:44:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QrP1m-0003Ev-Ne; Thu, 11 Aug 2011 02:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kourosh Neshatian Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Aug 2011 06:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9123 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9123-submit@debbugs.gnu.org id=B9123.131304511012391 (code B ref 9123); Thu, 11 Aug 2011 06:46:02 +0000 Original-Received: (at 9123) by debbugs.gnu.org; 11 Aug 2011 06:45:10 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QrP0u-0003Dn-9y for submit@debbugs.gnu.org; Thu, 11 Aug 2011 02:45:09 -0400 Original-Received: from mail-pz0-f47.google.com ([209.85.210.47]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QrP0m-0003D3-MM for 9123@debbugs.gnu.org; Thu, 11 Aug 2011 02:45:03 -0400 Original-Received: by pzk2 with SMTP id 2so3069267pzk.20 for <9123@debbugs.gnu.org>; Wed, 10 Aug 2011 23:43:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Q88o1Yiqwm7BWZyTqRNf/VdY9VlV6RjKiHI9+2ZYZDo=; b=g3c3cqpEioEzWWOyLCkqbZtgTdWE3zrDjgi7o7xehcYRHEqp0eZaUFf5E0CR44gv+o 8I7sRTeqyq1D2nkiPFKYeETc+0cEyrUmZhrvvd2GDLqqjdS9xiOjvd99Cqhudpa1FrRF i2O6mkaoSZ1tsI+9WFV02/Qyc1dyECh/65SNU= Original-Received: by 10.142.62.8 with SMTP id k8mr1310355wfa.184.1313045022082; Wed, 10 Aug 2011 23:43:42 -0700 (PDT) Original-Received: by 10.68.52.133 with HTTP; Wed, 10 Aug 2011 23:43:22 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 11 Aug 2011 02:46:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:50005 Archived-At: Hi Glenn, The problem has been experienced in versions 22.2.1 and 23.3.1 of Emacs. Steps to reproduce the error: 1. Alice (user name 'alice') runs Emacs with 'emacs -q --no-site-file' 2. Alice creates a text file in the directory, say 'document.tex', writes some text in it and saves it. 3. She runs 'vc-next-action' (C-x v v) and chooses RCS as her backend. This creates an RCS file 'RCS/document.tex,v'. 4. Alice checks out and locks the file again by 'vc-next-action' (C-x v v) to add/make some changes in the document. 5. Meanwhile, Bob (user name 'bob') logs in. He has access to the RCS directory (usually via a symbolic link). He checks out document.tex stealing the lock (rcs -l ...). NOTE: you don't actually need to login as a different user to simulate this step. Simply open 'RCS/document.tex,v' and change 'alice' (your user name) under 'locks' section to 'bob'. 6. Now, Alice has finished editing her copy; she saves the file and runs 'vc-next-action' (to check in). Emacs will ask her if she wants to steal the lock, she says 'yes'. What happens is that Emacs over-writes her local copy by the last version in the repository. Alice's changes/edits are all gone and apparently she does not have any means to recover! Cheers, Kourosh On 11 August 2011 09:13, Glenn Morris wrote: > albemarle wrote: > >> The following seems like a bug or msibehaviour to me. > > I'm having trouble reproducing this. Can you say which version of Emacs > this is with? Can you give a complete description of the sequence of > commands needed, starting from `emacs -q --no-site-file' when relevant? >