New submission from Eric Kow <06sd1oi02@xxxxxxxxxxxxxx>:
Darcs has code to make sure that the user does not violate patch dependencies,
for example, by unrecording a patch that some other patch depends on. But using
the 'w' or 'k' options in the interactive sessions, you can accidentally sneak
your way around such dependencies:
# creating a repo with a simple dependency
darcs init
touch foo
darcs add foo
darcs record -m "added foo"
echo a > foo
darcs record -m "modified foo"
# the right behaviour (n)
darcs unrecord
# should ask you about 'modified foo' - select 'n'
# should be 'No patches selected!'
# the wrong behaviour? (w)
darcs unrecord
# should ask you about 'modified foo' - select 'w'
# now it asks you about 'add foo' <-- wrong?
Of course, I could be missing something here. Perhaps this is a feature, and
not a bug? It appears to maintain consistency at least; unrecording 'add foo'
results in 'modify foo' being unrecorded.
----------
messages: 436
nosy: EricKow, droundy, tommy
priority: bug
status: unread
title: interactive mode allows patch dependencies to be violated
____________________________________
Darcs issue tracker <bugs@xxxxxxxxx>
<http://bugs.darcs.net/issue116>
____________________________________
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|