[darcs-users] Feedback on hunk splitting with Darcs 2.4 beta 1

Trent W. Buck twb at cybersource.com.au
Tue Jan 19 08:03:55 UTC 2010

Isaac Dupree <ml at isaac.cedarswampstudios.org> writes:

> Petr Rockai wrote:
>> Ganesh Sittampalam <ganesh at earth.li> writes:
>>>> (It's quite likely there's something I don't understand about darcs, since
>>>> sometime I used 'darcs send' and it put some old draft patches of mine that
>>>> weren't in the current repo into the "context" of the patch, thus making the
>>>> patches unusable by upstream.)
>>> This might be caused by a dependency of some form, or it might be caused by
>>> darcs send being too eager at picking up context. I'm not sure what darcs send
>>> does to decide what the context should be.
>> I think this is likely due to using -o/-O against a "wrong" repository
>> (a local branch with draft patches in it). By default, send works
>> against defaultrepo and if you use -o/-O, it is not clear that this is
>> not the one you intended.
> yes, there's a good chance that it was my silly error rather than
> darcs's. (I don't remember too well now.)  defaultrepo is so
> hazardous...

I haven't tried it, but maybe you can do something like

    ALL remote-repo "You forgot to specify a remote repo!"

so that _darcs/prefs/defaultrepo is overridden by a target repo that 1)
doesn't work; and 2) hopefully, reminds you why.

More information about the darcs-users mailing list