remove ignored files in bulk

Asked by ricosuave

Hi All,

We have been having some problems using Bazaar for a big .NET solution. We've been experimenting with what filetypes we shoud include in versioning and which ones we should exclude (if someone has info on this for Visual Studio filetypes, it's very welcome).

Anyway, I think we're pretty close now, but the problem we're running into is that when we decide to exclude/ignore a specific type (say, .xsd, for example) and one of the developers has already committed a revision with one or more .xsd files in it, bazaar will NOT ignore the already versioned .xsd files (which is by design).

The solution is to issue a "bzr rm" on the versioned files in question, but these (already versioned) files can be spread across numerous directories. I'm wondering if it is possible to say to bazaar "remove all .xsd files from bazaar that are currently versioned." Or even "remove all files from Bazaar that are currently ignored".

Is there a command or a GUI function that can do such a bulk operation?

Thanks,

Erik

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
John A Meinel
Solved:
Last query:
Last reply:
Revision history for this message
Best John A Meinel (jameinel) said :
#1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/13/2011 01:43 PM, ricosuave wrote:
> New question #152661 on Bazaar:
> https://answers.launchpad.net/bzr/+question/152661
>
> Hi All,
>
> We have been having some problems using Bazaar for a big .NET solution. We've been experimenting with what filetypes we shoud include in versioning and which ones we should exclude (if someone has info on this for Visual Studio filetypes, it's very welcome).
>
> Anyway, I think we're pretty close now, but the problem we're running into is that when we decide to exclude/ignore a specific type (say, .xsd, for example) and one of the developers has already committed a revision with one or more .xsd files in it, bazaar will NOT ignore the already versioned .xsd files (which is by design).
>
> The solution is to issue a "bzr rm" on the versioned files in question, but these (already versioned) files can be spread across numerous directories. I'm wondering if it is possible to say to bazaar "remove all .xsd files from bazaar that are currently versioned." Or even "remove all files from Bazaar that are currently ignored".
>
> Is there a command or a GUI function that can do such a bulk operation?
>
> Thanks,
>
> Erik
>

find . -name '*.xsd' | xargs bzr rm

Or

bzr rm *.xsd */*.xsd */*/*.xsd */*/*/*.xsd

etc.

I realize this isn't optimal, but it shouldn't be particularly hard to do.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2lkGwACgkQJdeBCYSNAAMiWwCfUrI/3KrLim7IzDSNmREy0MbV
d5oAnAofa0vB8CHZykQtRNkW0lo0wTNW
=ht9W
-----END PGP SIGNATURE-----

Revision history for this message
ricosuave (posted-precompiled) said :
#2

Thanks John A Meinel, that solved my question.