[darcs-users] Odd behavior for push
Tommy Pettersson
ptp at lysator.liu.se
Tue Sep 13 20:42:53 UTC 2005
On Tue, Sep 13, 2005 at 02:27:59PM -0500, Richard A. Smith wrote:
> When doing a darcs push it asks me if I want to push the patch. If I
> say 'n' then rather than moving to the next patch it just exits. If I
> do a 'j' then it skips or if I answer 'y' then it moves to the next
> patch but 'n' seems to be effectively 'q'
>
> darcs record does not work this way. 'n' moves to the next change.
In this case the second patch most certainly depends on the
first one. If you don't push the first one, the second one
can't be pushed.
Call the first one A and the second one B. When you say 'n'
to A darcs take it you do absolutely not want to push it,
which automatically rules out B, and then darcs never bother
to ask about B since it is already "decided" not to be pushed.
If you instead step down with 'j', the destiny of A is still
undecided, but should you say 'y' to B, A will automatically
be decided 'y' as well, since B depends upon it.
Such dependencies don't happen when recording hunks only, but
if you have a pending addfile and a hunk with contents for that
file, the same thing will happen if you say 'n' to the addfile
change, since the contents depend on the file being added.
--
Tommy Pettersson <ptp at lysator.liu.se>
More information about the darcs-users
mailing list