record extension default prompt choice

Giorgos Keramidas keramida at ceid.upatras.gr
Fri May 15 08:44:45 CDT 2009


On Fri, 15 May 2009 09:42:02 -0400, Greg Ward <greg-hg at gerg.ca> wrote:
> On Thu, May 14, 2009 at 11:38 PM, Giorgos Keramidas
> <keramida at ceid.upatras.gr> wrote:
>> I often find myself hitting 'n' in large sets of changes just to pick
>> one out of many.  It appears that for cherry-picking a small part of all
>> the workspace changes it would be useful to me to be able to run the
>> record extension in a mode where:
>>
>>  - the default prompt choice for files is still 'yes', so I get to see
>>    the diffs for all modified workspace files
>>  - the default prompt choice for diff hunks is 'no', so I only have to
>>    keep hitting RETURN until I see the few changes I want to record
>
> It would be nice to have the same option at file level.  They should
> be different options, but with the same basic idea.
>
>> How would you call this sort of option in the command line of record.py?
>>
>> I was thinking of something like:
>>
>>  hg record --only-selected
>
> ...which argues for --only-selected-files and --only-selected-hunks.
> Phew, what a mouthful.
>
> Perhaps --hunk-default={y,n} and --file-default={y,n}?  That at least
> opens up the possibility of having more than two values, and it means
> we don't need to add yet another option to restore default behaviour
> when you have this configured differently.

File-level granularity is already there with -I / -X options.  It's the
hunk default that irks me now and then...




More information about the Mercurial-devel mailing list