darcs-style cherry-picking of changes to commit ?

Tristan Seligmann mithrandi-bazaar-ng at mithrandi.za.net
Sun Dec 11 12:41:02 GMT 2005


* Martin Pool <mbp at sourcefrog.net> [2005-12-06 18:38:10 +1100]:

> I agree that it's possible to use it in a bad way.  But there is a way
> to mitigate it.  That is: let the user choose the hunks to be committed,
> and build an in-memory tree describing what they chose.  Export that to
> a temporary directory, and run a configured selftest command in there;
> if the test fails then show the error and disallow the commit.
> 
> I think darcs does this but I'm not sure.  For that matter it's

Yes; if you have darcs configured to run a test command on record
(commit), it will run the test on the actual recorded tree in a
temporary directory, so you won't have revisions that were never tested.
-- 
mithrandi, i Ainil en-Balandor, a faer Ambar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051211/10250974/attachment.pgp 


More information about the bazaar mailing list