On Tue, Sep 20, 2005 at 12:17:01PM -0500, Taral wrote:
> On 9/19/05, David Roundy <droundy@xxxxxxxxx> wrote:
> > darcs pull --intersection repoA repoB repoC
> >
> > which pulls only those patches which are present in all three repos.
>
> Hm, for safety, perhaps intersection should be default and --union be
> the flag? That way we don't accidentally pull excess patches because
> the user forgot the flag.
I chose the other direction because I think union is more natural. It
seems to me that when you specify multiple repositories the most natural
interperetation is "and", as in "pull from this place and pull from that
place". I don't think users who don't know what they're doing are likely
to be using --all *and* pulling from multiple repositories. As long as
they're prompted, there's no real danger. And I think it would seem
confusing to pull from two repositories and be told that there are no
changes to pull, when you know perfectly well that both repositories have
changes to pull. On the other hand, at this stage I'm just restating that
to me a union seems like the natural meaning for "darcs pull A B".
--
David Roundy
http://www.darcs.net
|