From: Novimir Pablant <mir@amicitas.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 3122@emacsbugs.donarmstrong.com
Subject: bug#3122: Error saving commit messages for bazaar (bzr).
Date: Wed, 29 Apr 2009 12:02:33 -0700 [thread overview]
Message-ID: <49F8A449.3020905@amicitas.com> (raw)
In-Reply-To: <83hc08djlc.fsf@gnu.org>
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<mir@amicitas.com>
>> 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.
>
next prev parent reply other threads:[~2009-04-29 19:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-26 22:56 bug#3122: Error saving commit messages for bazaar (bzr) Novimir Pablant
2009-04-27 3:02 ` Stefan Monnier
2009-04-27 5:52 ` Novimir Pablant
2009-04-27 18:25 ` Eli Zaretskii
2009-04-29 5:58 ` Novimir Pablant
2009-04-29 7:06 ` Eli Zaretskii
2009-04-29 19:02 ` Novimir Pablant [this message]
2009-04-29 20:29 ` Stefan Monnier
2020-08-20 18:54 ` Lars Ingebrigtsen
2020-08-20 19:30 ` Eli Zaretskii
2020-08-20 19:43 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49F8A449.3020905@amicitas.com \
--to=mir@amicitas.com \
--cc=3122@emacsbugs.donarmstrong.com \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.