darcs

Issue 327 darcs record -l --ask-deps results in odd pending

Title darcs record -l --ask-deps results in odd pending
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, thorkilnaur, tommy, trentbuck
Assigned To
Topics

Created on 2006-11-01.08:25:08 by trentbuck, last changed 2009-08-27.14:11:13 by admin.

Messages
msg1162 (view) Author: twb Date: 2006-11-01.08:25:03
Consider the following transcript.

    $ darcs --version
    1.0.8 (release)
    you have mail
    $ darcs --exact-version
    darcs compiled on Jul  4 2006, at 20:08:54
    # configured Fri Jun 16 14:55:21 EDT 2006
    ./configure --no-create --no-recursion

    Context:

    [TAG 1.0.8
    Tommy Pettersson <ptp@lysator.liu.se>**20060616160213]
    $ x=`mktemp -d /tmp/XXXXXX`
    $ cd $x
    $ darcs init
    $ echo foo >foo
    $ echo bar >bar
    $ darcs add foo
    $ darcs rec -am foo
    Finished recording patch 'foo'
    $ echo yd |
    > darcs rec -lam bar --ask-deps bar
    Recording changes in "bar":

    Wed Nov  1 19:21:47 EST 2006  Trent Buck <trentbuck@gmail.com>
      * foo
    Shall I depend on this patch? (1/?)  [ynWvpxqadjkc], or ? for help:
    Finished recording patch 'bar'
    $ darcs w -s
    R ./foo
    $

Why does darcs think bar has been removed?
Is this the correct behaviour?
-- 
Trent Buck, Student Errant
msg1221 (view) Author: kowey Date: 2006-11-15.02:13:08
This is weird and wonderful.  Thanks for taking the effort to find a
minimal example.  Here is a somewhat smaller example:

cd `mktemp -d /tmp/XXXXX`
darcs init
touch a
darcs add a
darcs record -am foo
echo y | darcs record -am foo --ask-deps foo
darcs what -s

Indeed we get something saying that foo has been removed.

Note that --look-for-adds is not needed to make this happen; however
specifying some file on the command line is.  You can even do this on
any old file, for example, just touch bar and this will happen.

In any case, it's worth putting this into the test suite.
msg1366 (view) Author: tommy Date: 2006-12-20.19:54:06
This seems to have been fixed by David's latest fixes for pending.
I can not reproduce the bug with current unstable.
Can anyone confirm?
msg1854 (view) Author: kowey Date: 2007-07-17.10:03:28
I'm guessing that this is the patch Tommy is referring to:

Sat Dec  9 23:39:16 CET 2006  David Roundy <droundy@darcs.net>
  * fix pending bug that broke several_commands.sh.

I can reproduce it with 1.0.9 but not with stable
History
Date User Action Args
2006-11-01 08:25:08trentbuckcreate
2006-11-15 02:13:14koweysetstatus: unread -> unknown
nosy: droundy, tommy, kowey, trentbuck
messages: + msg1221
2006-12-20 19:54:14tommysetnosy: + beschmi
messages: + msg1366
2007-07-17 10:03:30koweysetstatus: unknown -> resolved-in-stable
nosy: droundy, tommy, beschmi, kowey, trentbuck
messages: + msg1854
2007-08-06 08:30:07koweylinkissue133 superseder
2008-09-16 21:30:32adminsetstatus: resolved-in-stable -> resolved
nosy: + dagit
2009-08-06 17:38:38adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, zooko, mornfall, simon, thorkilnaur, - droundy, trentbuck
2009-08-06 20:35:27adminsetnosy: - beschmi
2009-08-10 21:58:02adminsetnosy: + trentbuck, - markstos, darcs-devel, zooko, jast, Serware, mornfall
2009-08-10 23:57:32adminsetnosy: - dagit
2009-08-25 17:52:18adminsetnosy: + darcs-devel, - simon
2009-08-27 14:11:13adminsetnosy: tommy, kowey, darcs-devel, trentbuck, thorkilnaur, dmitry.kurochkin