[darcs-devel] [issue76] Incorrect error message in 'darcs send' and
no write permissions
Jonathon Mah
bugs at darcs.net
Sun Jan 1 06:45:27 PST 2006
New submission from Jonathon Mah <me at JonathonMah.com>:
When the current user does not have write permissions to the repository and
tries to darcs send, an incorrect error message appears. It is "incorrect" in
the sense that the message is not true, and also there should arguably be no
error at all.
Example:
jonathon:~$ cd /tmp
jonathon:/tmp$ darcs get http://path/to/some/repo
jonathon:/tmp$ chmod -R a+r repo/
jonathon:/tmp$ cd repo
jonathon:/tmp/repo$ darcs send
Creating patch to "http://path/to/some/repo"...
Patch bundle will be sent to: blah at blah.com
No recorded local changes to send!
jonathon:/tmp/repo$ su otheruser
otheruser:/tmp/repo$ darcs send
darcs failed: Not a repository: http://path/to/some/repo
There certainly is a repository at that URL -- the actual error is that there is
no write access to the repo, so darcs presumably can't get a lock. However, is
there any reason to disallow sending from a read-only repo?
----------
messages: 290
nosy: droundy, jonathon, tommy
priority: bug
status: unread
title: Incorrect error message in 'darcs send' and no write permissions
____________________________________
Darcs issue tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue76>
____________________________________
More information about the darcs-devel
mailing list