splitting files and splitting hairs

Martin Pool mbp at sourcefrog.net
Sun May 8 23:58:27 BST 2005


On Sun, 2005-05-08 at 19:32 +0800, Lalo Martins wrote:
> One common use case I find when refactoring is to split one file into a
> few.  The only RCS I ever used that supports that is Subversion (svn cp
> foo.py bar.py; gnuclient foo.py bar.py); but that's far from being my
> favorite RCS ;-)
> 
> Any ideas how bzr could do that?  Off the top of my head (15-second
> design), I'd store a new field "descends_from" in the inventory (with
> the file_id of the "parent" file).

Yes, that's pretty much what we had too.  

As in svn, all this does is let you see the history of the file.  There
doesn't seem any way to easily do merges across this split.  

(Although actually with a sufficiently smart language-aware merge client
perhaps you could; if it saw that a function was moved into the other
file then perhaps it could look across the copy to find it.)

-- 
Martin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050509/535dfa1d/attachment.pgp 


More information about the bazaar mailing list