From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Novimir Pablant Newsgroups: gmane.emacs.bugs Subject: bug#3122: Error saving commit messages for bazaar (bzr). Date: Wed, 29 Apr 2009 12:02:33 -0700 Message-ID: <49F8A449.3020905@amicitas.com> References: <49F4E687.4010108@amicitas.com> <49F5482D.3020804@amicitas.com> <83vdoqdkdv.fsf@gnu.org> <49F7EC92.9070001@amicitas.com> <83hc08djlc.fsf@gnu.org> Reply-To: Novimir Pablant , 3122@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1241044886 12503 80.91.229.12 (29 Apr 2009 22:41:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Apr 2009 22:41:26 +0000 (UTC) Cc: 3122@emacsbugs.donarmstrong.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 30 00:41:18 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LzISr-0001c5-FZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Apr 2009 00:41:17 +0200 Original-Received: from localhost ([127.0.0.1]:51850 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzISq-0006ir-Vt for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Apr 2009 18:41:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LzFCK-00071d-Hf for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2009 15:12:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LzFCG-000717-3t for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2009 15:12:00 -0400 Original-Received: from [199.232.76.173] (port=37369 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzFCF-000714-Ti for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2009 15:11:55 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:3612) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LzFCF-0006IX-K4 for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2009 15:11:55 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LzFCE-0000UP-Bh for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2009 15:11:55 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3TJBp0e009828; Wed, 29 Apr 2009 12:11:52 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n3TJA5ED008701; Wed, 29 Apr 2009 12:10:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Novimir Pablant Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 29 Apr 2009 19:10:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3122 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3122-submit@emacsbugs.donarmstrong.com id=B3122.12410317436368 (code B ref 3122); Wed, 29 Apr 2009 19:10:05 +0000 Original-Received: (at 3122) by emacsbugs.donarmstrong.com; 29 Apr 2009 19:02:23 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from artemis.gat.com (artemis.gat.com [192.73.7.124]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3TJ2KGJ006360 for <3122@emacsbugs.donarmstrong.com>; Wed, 29 Apr 2009 12:02:21 -0700 X-Envelope-From: mir@amicitas.com X-Envelope-To: monnier@iro.umontreal.ca Original-Received: From smtp.gat.com (192.73.7.121) by artemis.gat.com (MAILFOUNDRY) id P+VxbjTwEd6jrwAw; Wed, 29 Apr 2009 19:02:13 -0000 (GMT) Original-Received: from [198.129.105.168] (lnx-n-antoniuk.gat.com [198.129.105.168]) by smtp.gat.com (Switch-3.2.7/Switch-3.2.7) with ESMTP id n3TJ2CO4025361; Wed, 29 Apr 2009 12:02:12 -0700 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 In-Reply-To: <83hc08djlc.fsf@gnu.org> X-detected-kernel: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Wed, 29 Apr 2009 15:12:00 -0400 X-Mailman-Approved-At: Wed, 29 Apr 2009 18:40:15 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27552 Archived-At: Here is the result: (nil 1 "amicitas" "None" (18935 57961) (18935 57961) (18935 55764) 15789 "-rw-rw-rw-" nil (768 1 . 15292) 1830808) I dug a little into the bazaar code to see what was actually being done to that file. I didn't really have the time to actually get my head around the bzr code but I think what is being called is: LOCK_SH = 0 # the default LOCK_EX = win32con.LOCKFILE_EXCLUSIVE_LOCK LOCK_NB = win32con.LOCKFILE_FAIL_IMMEDIATELY lockmode = LOCK_SH + LOCK_NB win32file.LockFileEx(self.hfile, lockmode, 0, 0x7fff0000, overlapped) This is what bzr considers a read_lock for win32. For a writelock lockmode = LOCK_EX + LOCK_NB Novi On 4/29/2009 12:06 AM, Eli Zaretskii wrote: >> Date: Tue, 28 Apr 2009 22:58:42 -0700 >> From: Novimir Pablant >> CC: 3122@emacsbugs.donarmstrong.com, monnier@iro.umontreal.ca >> >> file-attributes gives: >> (nil 1 1006 513 (18935 56919) (18935 56919) (18935 55764) 15788 >> "-rw-rw-rw-" nil (768 1 . 15292) 1830808) > > Sorry, I should have said > > M-: (file-attributes > "c:/library/code/python/annotatex/releases/test/.bzr/checkout/dirstate" > 'string) RET > > (note the `string' optional argument). It now seems that indeed the > permissions are not the issue, but just to be sure, make sure what the > above displays says that the user "amicitas" is displayed instead of > the numerical ID 1006 as the owner of the file. >