A branch from a sub-directory?

Gioele gioele at svario.it
Mon Feb 16 08:25:45 GMT 2009


Ian Clatworthy wrote:
> Perhaps I should make this use case easier by adding an option to
> fast-import that takes a directory name, e.g. something like:
> 
>   bzr fast-export > dump.txt
>   bzr fast-import --only mydir dump.txt
That would be perfect.

> Would it be better to only support one dir, or make --only
> be a list option, or make --only take a file containing the paths
> of interest?
Following GNU grep and diff style for similar options (--exclude-*):

--only-dir DIR
    use DIR as the new branch root

--only-from FILE
    start with an empty branch root and fill it with the list of
    files and directory contained in FILE

--only FILE|DIR
    when given once and with a DIR, acts like --only-dir DIR, otherwise
    acts as it would do for a single entry in --only-from

-- 
Gioele <gioele at svario.it>





More information about the bazaar mailing list