From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 19 12:35:36 2011 Received: (at submit) by debbugs.gnu.org; 19 Jul 2011 16:35:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QjDGe-0001lp-81 for submit@debbugs.gnu.org; Tue, 19 Jul 2011 12:35:36 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qj5Nh-0003p9-UB for submit@debbugs.gnu.org; Tue, 19 Jul 2011 04:10:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qj5NV-0007CA-SM for submit@debbugs.gnu.org; Tue, 19 Jul 2011 04:10:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:59024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qj5NV-0007B9-MC for submit@debbugs.gnu.org; Tue, 19 Jul 2011 04:10:05 -0400 Received: from eggs.gnu.org ([140.186.70.92]:52417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qj5NQ-0001PX-Ms for Bug-gnu-emacs@gnu.org; Tue, 19 Jul 2011 04:10:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qj5NJ-00079H-RX for Bug-gnu-emacs@gnu.org; Tue, 19 Jul 2011 04:10:00 -0400 Received: from sam.nabble.com ([216.139.236.26]:39016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qj5NJ-00078H-C6 for Bug-gnu-emacs@gnu.org; Tue, 19 Jul 2011 04:09:53 -0400 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Qj5NC-0008CW-1e for Bug-gnu-emacs@gnu.org; Tue, 19 Jul 2011 01:09:46 -0700 Message-ID: <32089101.post@talk.nabble.com> Date: Tue, 19 Jul 2011 01:09:46 -0700 (PDT) From: albemarle To: Bug-gnu-emacs@gnu.org Subject: bug/misbehaviour in vc-next action when stealing locks MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: neshatian@gmail.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 19 Jul 2011 12:35:31 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) The following seems like a bug or msibehaviour to me. Context: -------- Alice checks out (locks) file 'text'. The back-end is RCS. Bob checkout the same file; he steals the lock. Alice has made some changes. She saves the file and now wants to check in. She presses C-x v v and is asked if she wants to steal the lock. She says 'yes'. What happens: -------------- All her changes are lost and she is back to an unchanged (last revision) of the file. Expected: ---------- A warning saying that she is going to lose all her changes OR at least some way of getting those changes back (e.g. undo). None is available at the moment. Note that Alice initiated 'vc-next-action' with the intention of 'check-in' but she ended up having a 'check-out' that overwrote her file. Feedback welcome. A. -- View this message in context: http://old.nabble.com/bug-misbehaviour-in-vc-next-action-when-stealing-locks-tp32089101p32089101.html Sent from the Emacs - Bugs mailing list archive at Nabble.com. From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 10 17:14:19 2011 Received: (at 9123) by debbugs.gnu.org; 10 Aug 2011 21:14:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QrG6V-0006aH-4Y for submit@debbugs.gnu.org; Wed, 10 Aug 2011 17:14:19 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QrG6T-0006aB-TS for 9123@debbugs.gnu.org; Wed, 10 Aug 2011 17:14:18 -0400 Received: from localhost ([127.0.0.1]:32901) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrG5F-00077f-VG; Wed, 10 Aug 2011 17:13:02 -0400 From: Glenn Morris To: albemarle Subject: Re: bug#9123: bug/misbehaviour in vc-next action when stealing locks References: <32089101.post@talk.nabble.com> X-Spook: Saddam Hussein Janet Reno Mantis terrorist New World X-Ran: 4#3<(BJ0E|WM`q)_]O[+f47{o4v$u4\;T,WqbPJVHbKu[A|SGbt=[R;@q#i`$_^Rr%jA1L X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 10 Aug 2011 17:13:01 -0400 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 9123 Cc: 9123@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) 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? From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 11 02:45:10 2011 Received: (at 9123) by debbugs.gnu.org; 11 Aug 2011 06:45:10 +0000 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 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 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= Received: by 10.142.62.8 with SMTP id k8mr1310355wfa.184.1313045022082; Wed, 10 Aug 2011 23:43:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.52.133 with HTTP; Wed, 10 Aug 2011 23:43:22 -0700 (PDT) In-Reply-To: References: <32089101.post@talk.nabble.com> From: Kourosh Neshatian Date: Thu, 11 Aug 2011 18:43:22 +1200 Message-ID: Subject: Re: bug#9123: bug/misbehaviour in vc-next action when stealing locks To: Glenn Morris Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 9123 Cc: 9123@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) 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? > From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 05 20:58:59 2011 Received: (at 9123) by debbugs.gnu.org; 6 Sep 2011 00:58:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R0k0B-0004oe-6Q for submit@debbugs.gnu.org; Mon, 05 Sep 2011 20:58:59 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R0k08-0004oX-QD for 9123@debbugs.gnu.org; Mon, 05 Sep 2011 20:58:58 -0400 Received: from localhost ([127.0.0.1]:43722) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0jwW-0005Ba-9X; Mon, 05 Sep 2011 20:55:12 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=unknown Content-Transfer-Encoding: quoted-printable Message-ID: <20069.28527.535035.629774@fencepost.gnu.org> Date: Mon, 5 Sep 2011 20:55:11 -0400 From: Glenn Morris To: Kourosh Neshatian Subject: Re: bug#9123: bug/misbehaviour in vc-next action when stealing locks In-Reply-To: References: <32089101.post@talk.nabble.com> X-Debbugs-No-Ack: yes X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: green X-Ran: J.\0w.;`H%1n&4LW-#JvXzkLRX?PM\1ow'&e#Q>#NT$3hJ#8.>]2#\gD}BWf X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 9123 Cc: 9123@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) Kourosh Neshatian wrote (on Sun, 4 Sep 2011 at 15:57 +1200): > I wonder if you could reproduce the error. No, see below. > > Steps to reproduce the error: > > > > 1. Alice (user name 'alice') runs Emacs with 'emacs -q --no-site-fi= le' > > > > 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. I did the following as normal user A: umask 0 mkdir ~/foo echo "test" > foo/1 emacs-23.3 -Q foo/1 C-x v v RCS RET RET # now registered with RCS C-x v v # now file is checked out > > 5. Meanwhile, Bob (user name 'bob') logs in. =A0He has access to th= e RCS > > directory (usually via a symbolic link). He checks out document.tex= > > stealing =A0the lock (rcs -l ...). I logged in as normal user B and did: emacs-23.3 -Q ~A/foo/1 Emacs says "Note: file is write protected". C-x v v steal the lock yes/no=3F yes RET A mail buffer pops up, prompting me to send an email to user A explaini= ng why I stole the lock. I do so. > > 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 want= s > > 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 d= oes > > not have any means to recover! Back in user A's still-running Emacs, I type some text in the still open buffer. Emacs says: file changed on disk; really edit the buffer=3F=20 I answer yes, type some text and save. Emacs says: file has changed since visited or saved. Save anyway=3F I answer yes. Emacs says: file is write-protected; try to save anyway=3F I answer yes. I then do C-x v v and try to check in the file. This fails, with an error message that the file is locked by user B. This was with RCS 5.7. I never notmally use RCS, maybe I am missing something. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 03 18:52:47 2014 Received: (at 9123) by debbugs.gnu.org; 3 Feb 2014 23:52:47 +0000 Received: from localhost ([127.0.0.1]:48470 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WATJn-000310-2T for submit@debbugs.gnu.org; Mon, 03 Feb 2014 18:52:47 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:56779) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WATJl-00030t-Rs for 9123@debbugs.gnu.org; Mon, 03 Feb 2014 18:52:46 -0500 Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WATJV-0001Y2-LM; Tue, 04 Feb 2014 00:52:30 +0100 From: Lars Ingebrigtsen To: Glenn Morris Subject: Re: bug#9123: bug/misbehaviour in vc-next action when stealing locks References: <32089101.post@talk.nabble.com> <20069.28527.535035.629774@fencepost.gnu.org> Date: Mon, 03 Feb 2014 15:51:31 -0800 In-Reply-To: <20069.28527.535035.629774@fencepost.gnu.org> (Glenn Morris's message of "Mon, 5 Sep 2011 20:55:11 -0400") Message-ID: <878utr21rw.fsf@building.gnus.org> User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1WATJV-0001Y2-LM X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1392076351.91429@saVd0BCDIr0t6PBfRWAgIA X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 9123 Cc: 9123@debbugs.gnu.org, Kourosh Neshatian X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Glenn Morris writes: > This was with RCS 5.7. I never notmally use RCS, maybe I am missing > something. More information was requested two years ago, but no further progress has been made (and the problems seems to be unreproducible), so I'm closing this bug report. If this problem is still present, please reopen the bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 03 18:52:53 2014 Received: (at control) by debbugs.gnu.org; 3 Feb 2014 23:52:53 +0000 Received: from localhost ([127.0.0.1]:48473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WATJt-00031L-Du for submit@debbugs.gnu.org; Mon, 03 Feb 2014 18:52:53 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:56786) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WATJr-00031B-EY for control@debbugs.gnu.org; Mon, 03 Feb 2014 18:52:51 -0500 Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WATJb-0001YB-Cg for control@debbugs.gnu.org; Tue, 04 Feb 2014 00:52:35 +0100 Date: Mon, 03 Feb 2014 15:51:37 -0800 Message-Id: <877g9b21rq.fsf@building.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #9123 X-MailScanner-ID: 1WATJb-0001YB-Cg X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1392076358.07085@iMBER4fhbLN4c2R0SOhR1Q X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) close 9123 From unknown Fri Sep 05 22:44:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 04 Mar 2014 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator