export a list of files/dirs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
It would be nice if export could not just be able to export a single file or a single directory but also be able to export a list of files and dirs. I'm currently hacking on the difftools plugin to address Bug #422002 to only export the files that have been changed between two revisions.
To achieve this I currently have to create a new inventory object and call the private method _set_inventory on a working tree or set _inventory directly (depending on the type of the working tree). I can now call export and pass that modified tree to export only the files in the inventory.
To avoid this dirty hack export should be able to export files / directories selectively. Ideally there should be a way to distinguish if I want to export a directory with or without its children by either specifying "dirname" or "dirname/"...
Changed in bzr: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
tags: | added: check-for-breezy |
On Thu, 2011-04-21 at 14:49 +0000, Bastian wrote:
> Public bug reported:
>
> It would be nice if export could not just be able to export a single
> file or a single directory but also be able to export a list of files
> and dirs. I'm currently hacking on the difftools plugin to address Bug
> #422002 to only export the files that have been changed between two
> revisions.
>
> To achieve this I currently have to create a new inventory object and
> call the private method _set_inventory on a working tree or set
> _inventory directly (depending on the type of the working tree). I can
> now call export and pass that modified tree to export only the files in
> the inventory.
>
> To avoid this dirty hack export should be able to export files /
> directories selectively. Ideally there should be a way to distinguish if
> I want to export a directory with or without its children by either
> specifying "dirname" or "dirname/"...
It should be fairly easy to extend the export logic to be able to
exclude certain things; at the moment it has a hardcoded filter for
".bzr*".
Is there any reason for wanting to export a directory without its
children, wouldn't "mkdir" would do the same thing?
Cheers,
Jelmer