A branch from a sub-directory?

Marius Kruger amanic at gmail.com
Sun Feb 15 14:07:41 GMT 2009

2009/2/15 Gioele <gioele at svario.it>

> One of the modules of a project I'm working on has outgrew its parent
> project. This module lives in a sub-directory of its parent project.
> I'd like to move this module to its own branch preserving its history.
> Is there a way to create a branch from that directory without bringing in
> the complete history of the previous branch but only the history of files
> in that subdirectory?

maybe `bzr split ...` would do the trick for you:

Purpose: Split a subdirectory of a tree into a separate tree.
Usage:   bzr split TREE

  -v, --verbose  Display more information.
  -q, --quiet    Only display errors and warnings.
  -h, --help     Show help message.

  This command will produce a target tree in a format that supports
  rich roots, like 'rich-root' or 'rich-root-pack'.  These formats cannot be
  converted into earlier formats like 'dirstate-tags'.

  The TREE argument should be a subdirectory of a working tree.  That
  subdirectory will be converted into an independent tree, with its own
  branch.  Commits in the top-level tree will not apply to the new subtree.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20090215/12f0c933/attachment.htm 

More information about the bazaar mailing list