darcs

Issue 825 does pushing require write access to the local repo?

Title does pushing require write access to the local repo?
Priority wishlist Status duplicate
Milestone Resolved in
Superseder fix bug where we were calling revertRepository when running with --dry-run.
View: 855
Nosy List darcs-devel, dmitry.kurochkin, kowey, thorkilnaur, tommy, zandr, zooko
Assigned To
Topics

Created on 2008-05-01.13:18:16 by zooko, last changed 2009-08-27.14:15:45 by admin.

Messages
msg4420 (view) Author: zooko Date: 2008-05-01.13:18:14
The Operations / SysAdmin guy that I work with, Zandr, reported that a darcs
push failed because he didn't have write access to create the lock file.  This
is understandable, and apparently the error message was clear enough, but this
later caused me to wonder -- why does darcs push require a lock in the source repo?

And for that matter, why does it require write access to anything in the source
repo?
msg4421 (view) Author: zooko Date: 2008-05-01.13:18:52
To be clear the failure that Zandr encountered was that he didn't have write
access to the *local* repo, the one *from* which he was pushing.
msg4519 (view) Author: droundy Date: 2008-05-03.16:57:55
Was Zandr using darcs-1? And what format repository was he using?

If he was using darcs-2 and a hashed-format repository, this is definitely a bug
(albeit a mild one).

If he was using darcs-1, then this is a known issue that I believe is fixed when
using hashed formats.

If he was using darcs-2 on a non-hashed repository, then this is correct
behavior--and a reason to use a hashed format.  The reason is that with
old-format repositories, a change to the repository while reading it could lead
to the reading of a corrupt version, which would be very, very bad.  This can't
happen with hashed repositories, though, which are more atomic.
msg4569 (view) Author: zandr Date: 2008-05-08.01:24:02
I couldn't swear to the original instance being darcs2 and hashed-format, but we
just hit it again on a hashed repo.
msg4774 (view) Author: kowey Date: 2008-05-19.15:20:59
This is a duplicate of the later issue855
msg7346 (view) Author: zandr Date: 2009-02-21.21:21:39
I disagree that this is a duplicate of 855. Or, at least that the fix for 855
(which special cases --dry-run) is a fix for this.

We just hit this again, trying to push from a darcs2/hashed repo to another one
on a different box. I really want to be able to run scripts that keep repos in
sync under a user that doesn't have write permission to the source repo.
History
Date User Action Args
2008-05-01 13:18:16zookocreate
2008-05-01 13:18:54zookosetstatus: unread -> unknown
nosy: tommy, beschmi, zooko, dagit
messages: + msg4421
2008-05-03 16:57:57droundysetnosy: + droundy
messages: + msg4519
2008-05-08 01:24:03zandrsetnosy: + zandr
messages: + msg4569
2008-05-19 15:21:00koweysetstatus: unknown -> duplicate
nosy: + kowey
superseder: + fix bug where we were calling revertRepository when running with --dry-run.
messages: + msg4774
2009-02-21 21:21:42zandrsetnosy: + dmitry.kurochkin, simon, thorkilnaur
messages: + msg7346
2009-02-23 22:27:10droundysetnosy: - droundy
2009-08-06 21:03:41adminsetnosy: - beschmi
2009-08-11 00:12:13adminsetnosy: - dagit
2009-08-25 17:41:11adminsetnosy: + darcs-devel, - simon
2009-08-27 14:15:45adminsetnosy: tommy, kowey, darcs-devel, zooko, thorkilnaur, dmitry.kurochkin, zandr