darcs

Issue 418 wish: darcs get: recognize --patches, --matches

Title wish: darcs get: recognize --patches, --matches
Priority wishlist Status wont-fix
Milestone Resolved in
Superseder Nosy List ar, darcs-devel, dmitry.kurochkin, kowey, markstos, thorkilnaur, tommy
Assigned To
Topics

Created on 2007-02-24.19:36:34 by ar, last changed 2009-08-27.13:54:58 by admin.

Messages
msg1493 (view) Author: ar Date: 2007-02-24.19:36:25
I frequently run into "darcs get" not understanding the --patches and --matches
options; it seems like a logical thing to expect.

In particular, working with darcs is greatly facilitated by using naming
conventions for the patches, and I often want a repo where only one such set of
patches is present (e.g., working copies for various sub-projects).  Currently,
the easiest way I am aware of is:

  $ mkdir foo
  $ cd foo
  $ darcs init
  $ darcs pull --patches=... bar

instead of the more intuitive:

  $ darcs get --patches=... bar foo
  $ cd foo
msg2880 (view) Author: markstos Date: 2008-01-30.01:31:02
ar, 

Thanks for the report. I see how your suggestion would create a shortcut for you. 

I also see how it could make the "get" command more confusing for common cases.
It already has options like "--to-patch", which selects up to a particular patch. 

The "--patches" option matches not a single patch, but many patches. Having both
sets of commands could be confusing. 

To "get" a repository by specifying a recipe for many patches to match is
unintuitive to me, although I see how has a side effect of selecting *any*
patch, all patches which it depends on from the beginning would come with it. 

I recommend that this request be resolved as "wont-fix". 

There is already a simple alternative, which you described yourself. You could
further get rid of the "mkdir" command by using  "darcs init --repodir=foo".
msg3307 (view) Author: markstos Date: 2008-02-11.01:30:39
With no further comment on this, I'm resolving this as "wont-fix" as proposed
about a week ago.
History
Date User Action Args
2007-02-24 19:36:34arcreate
2008-01-30 01:31:03markstossetstatus: unread -> unknown
nosy: + markstos
messages: + msg2880
title: darcs get: recognize --patches, --matches -> wish: darcs get: recognize --patches, --matches
2008-02-11 01:30:40markstossetstatus: unknown -> wont-fix
nosy: droundy, tommy, beschmi, kowey, markstos, ar
messages: + msg3307
2009-08-06 17:48:51adminsetnosy: + jast, Serware, dmitry.kurochkin, darcs-devel, zooko, dagit, mornfall, simon, thorkilnaur, - droundy, ar
2009-08-06 20:53:30adminsetnosy: - beschmi
2009-08-10 22:02:13adminsetnosy: + ar, - darcs-devel, zooko, jast, dagit, Serware, mornfall
2009-08-25 18:00:41adminsetnosy: + darcs-devel, - simon
2009-08-27 13:54:58adminsetnosy: tommy, kowey, markstos, darcs-devel, ar, thorkilnaur, dmitry.kurochkin