darcs

Issue 442 darcs remove shouldn't fail at the first unmanaged file

Title darcs remove <filelist> shouldn't fail at the first unmanaged file
Priority wishlist Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, giksos, kowey, markstos, thorkilnaur, tommy
Assigned To markstos
Topics ProbablyEasy

Created on 2007-04-19.18:06:38 by giksos, last changed 2009-08-27.13:53:40 by admin.

Messages
msg1651 (view) Author: giksos Date: 2007-04-19.18:06:36
In the HintsAndTips section of the darcs documentation the following method of
removing a directory is described:

find directory_in_question -depth | xargs darcs remove

This method won't work however if the directory contains at least one unmanaged
file - darcs fails and stops when it sees the first such file.
msg2299 (view) Author: markstos Date: 2008-01-01.17:08:29
I updated the wiki to recommend an alternative:

darcs query manifest | grep directory_in_question | xargs darcs remove

I consider this wishlist item resolved now, but someone else is welcome to
re-open it.
msg2426 (view) Author: giksos Date: 2008-01-11.14:26:11
When I tried the new method, I got 

  Waiting for lock <reponame>/_darcs/lock

This can of course be solved by writing into an intermediate file, but then it
becomes an ugly two-liner :)
msg2427 (view) Author: markstos Date: 2008-01-11.14:39:10
I don't think I can get my repo to trigger this, but maybe it is too small. 

Developers: Does "darcs query manifest" need to lock the repository?
msg2429 (view) Author: droundy Date: 2008-01-11.15:41:01
On Fri, Jan 11, 2008 at 02:39:10PM -0000, Mark Stosberg wrote:
> I don't think I can get my repo to trigger this, but maybe it is too small. 
> 
> Developers: Does "darcs query manifest" need to lock the repository?

Assuming I'm right that query manifest is a synonymn for show files (we
should cut down the rate of synonymn creation), then no, it doesn't lock
the repository.
-- 
David Roundy
Department of Physics
Oregon State University
msg2434 (view) Author: kowey Date: 2008-01-11.15:58:55
> Assuming I'm right that query manifest is a synonymn for show files (we
> should cut down the rate of synonymn creation), then no, it doesn't lock
> the repository.

query manifest is indeed a synonym for show files (the preferred way
of saying it)

the hope was that we would get our renames done in one big upheaval
instead of trickling them out

this is why we have the notion of hidden commands (e.g. query is
hidden).  We want to actively encourage people to say things the new
way.  We were always at war with Eurasia.
msg2940 (view) Author: markstos Date: 2008-01-31.02:37:48
I'm again considering this resolved, since two developers confirmed that the
lock issue reported shouldn't be related to the recommended syntax posted on the
wiki as a solution.
History
Date User Action Args
2007-04-19 18:06:38giksoscreate
2007-07-21 20:14:40koweysettopic: + ProbablyEasy
nosy: droundy, tommy, beschmi, kowey, giksos
2008-01-01 17:08:31markstossetstatus: unread -> resolved
nosy: + markstos
messages: + msg2299
2008-01-11 14:26:14giksossetstatus: resolved -> unknown
messages: + msg2426
2008-01-11 14:39:11markstossetmessages: + msg2427
2008-01-11 15:41:02droundysetmessages: + msg2429
2008-01-11 15:58:57koweysetmessages: + msg2434
2008-01-31 02:37:49markstossetstatus: unknown -> resolved
nosy: droundy, tommy, beschmi, kowey, markstos, giksos
messages: + msg2940
2009-08-06 17:34:51adminsetnosy: + jast, Serware, dmitry.kurochkin, darcs-devel, zooko, dagit, mornfall, simon, thorkilnaur, - droundy, giksos
2009-08-06 20:32:05adminsetnosy: - beschmi
2009-08-10 22:03:25adminsetnosy: + giksos, - darcs-devel, zooko, jast, dagit, Serware, mornfall
2009-08-25 17:49:18adminsetnosy: + darcs-devel, - simon
2009-08-27 13:53:40adminsetnosy: tommy, kowey, markstos, darcs-devel, giksos, thorkilnaur, dmitry.kurochkin