export a list of files/dirs

Bug #768388 reported by Bastian
6
This bug affects 1 person
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/"...

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 768388] [NEW] export a list of files/dirs

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

Revision history for this message
Bastian (baztian) wrote :

Ok, the mkdir approach should work!

But I don't want to be able to *exclude* certain things. I would prefer a signature that *includes* the specified files/dirs.

Vincent Ladeuil (vila)
Changed in bzr:
status: New → Confirmed
importance: Undecided → Wishlist
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.