[shelf] Updated

Michael Ellerman michael at ellerman.id.au
Tue Nov 29 08:07:56 GMT 2005


Hi folks,

I've hacked a bit more on the shelf plugin, it's getting there. Check it out:

http://michael.ellerman.id.au/files/shelf_v2

 * Shelves are now stored in .bzr/x-shelf.

   Currently there is support for one shelf, called 'default'. You can store
   multiple patches under here, the first is '00' the second '01' and so on.

 * The default behaviour is now to shelve everything. To get the previous
   behaviour of selecting hunks specify "--pick" to the shelve command.

 * The question when shelving with --pick is now "Shelve this change", rather
   than "Keep this change", and the y/n choices have been reversed to suit
   obviously. This seems like a more logical choice of wording.

 * Unshelve now accepts --pick as well, allowing you to selectively unshelve
   some changes.

I've also refactoratorized things internally a bit, so there's probably some 
ghoulies in there. I still don't have any automated tests for the --pick 
behaviour, I'm too lazy, if someone's bored? ... :D

I've added a TODO as well, in case people are interested in where I think it 
should head.

And while I'm here, a quick survey:
 Q. Is not having proper rename/add/remove/meta-data support in shelf a 
    problem for people?

Personally I've never needed anything except shelving hunks of patches, so I 
haven't implemented it, and I won't bother for the moment unless people think 
it's important.

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/20051129/411e2ea9/attachment.pgp 


More information about the bazaar mailing list