how to ignore a file thats checked in

Martin Steigerwald Martin at lichtvoll.de
Tue Sep 6 12:50:28 UTC 2011


Hi!

I wish to have a file in my bazaar branch that is changes my network 
manager, cause I like to record my home default configuration of it.

But I like to ignore any automatic changes. Thus I thought I bzr ignore 
it, but bzr ignore doesn't seem to let me ignore file that are still in the 
branch. Why?

Can bzr be told to ignore is *nonetheless* instead of insisting that it 
knows better whats good for me?


merkaba:/etc> bzr ignore resolv.conf
Warning: the following files are version controlled and match your ignore 
pattern:
resolv.conf
These files will continue to be version controlled unless you 'bzr remove' 
them.
merkaba:/etc> bzr diff
=== added file '.bzrignore'
--- .bzrignore  1970-01-01 00:00:00 +0000
+++ .bzrignore  2011-09-06 12:42:49 +0000
@@ -0,0 +1,1 @@
+resolv.conf

=== modified file 'resolv.conf'
--- resolv.conf 2011-07-15 22:58:31 +0000
+++ resolv.conf 2011-09-06 11:15:22 +0000
@@ -1,4 +1,5 @@
 # Generated by NetworkManager
[... some differences ...]


For now I just removed the file from the branch:

merkaba:/etc#1> bzr remove --keep resolv.conf
removed resolv.conf
merkaba:/etc> bzr revert .bzrignore
-   .bzrignore                                                                                                                        
merkaba:/etc> rm .bzrignore 
merkaba:/etc>

But thats not the optimal solution in my viewpoint.

Ciao,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7



More information about the bazaar mailing list