darcs-style cherry-picking of changes to commit ?
Michael Ellerman
michael at ellerman.id.au
Sat Dec 3 03:32:50 GMT 2005
On Fri, 2 Dec 2005 21:06, Michael Ellerman wrote:
> On Fri, 2 Dec 2005 19:57, Simon Michael wrote:
> > Good evening all.. I'm a happy darcs user, checking out bzr which also
> > looks great. Thanks for creating it.
>
> I was also a fan of darcs hunk-selection at commit behaviour, and
> originally I was hoping to add something similar to bzr. (it's still a
> possibility)
>
> However I've decided now that darcs' behaviour actually encourages bad
> practice, in that it makes it very easy to create revisions that never
> existed in your working tree. This is a bad idea because it means you end
> up with revisions in history that were never built or tested.
>
> A lot of the time that's ok, if it's really easy to tease changes apart.
> But there will come a time, it's happened to me, when you inadvertantly
> check in something that doesn't build - because you forgot a hunk
> somewhere.
>
> So instead the idea is that if you've got multiple logical changes sitting
> in your working tree, you shelve the ones you're not intersted in for the
> moment, then you build, test and commit. You then unshelve some or all of
> the remaining changes and build/test/commit.
ps. To get the behaviour you want you now need to say "bzr shelve --pick". I'm
not set on --pick as the "I want to select individual hunks" option, but I
like it better than anything else I've thought of so far.
cheers
--
Michael Ellerman
IBM OzLabs
email: michael:ellerman.id.au
inmsg: mpe:jabber.org
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051202/05fd8bdb/attachment.pgp
More information about the bazaar
mailing list