need to suppress upgrade warning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Wishlist
|
Vincent Ladeuil |
Bug Description
I have a situation where I need to interoperate between bzr 0.7-2 (as provided in Debian sarge), and more recent versions, at least for the moment.
I therefore need a way to suppress the out-of-date branch format warning. I know the format is out of date but the newer formats are not compatible.
The constant nagging is not just annoying - it also makes sensible output less visible and tends to lead to user error (eg, not noticing error messages which come out along with the warning). So this is a real useability problem.
-anarres:moebius2> bzr status
Format <RepositoryFormat6> for file://
-anarres:moebius2> bzr --version
Bazaar (bzr) 0.91.0
Python interpreter: /usr/bin/python 2.4.4.final.0
Python standard library: /usr/lib/python2.4
bzrlib: /usr/lib/
Bazaar configuration: /u/ian/.bazaar
Bazaar log file: /u/ian/.bzr.log
Copyright 2005, 2006, 2007 Canonical Ltd.
http://
bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.
-anarres:moebius2> dpkg -s bzr
Package: bzr
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 10700
Maintainer: Debian Bazaar Maintainers <email address hidden>
Architecture: i386
Version: 0.91-2
Depends: libc6 (>= 2.6.1-1), python-central (>= 0.5.8), python (<< 2.6), python (>= 2.4), python (>> 2.5) | python-celementtree
Recommends: python-paramiko, python-pycurl
Suggests: xdg-utils, libxml2-utils
Conflicts: bzr-doc
Conffiles:
/etc/bash_
/etc/bash_
Description: Bazaar, the next-generation distributed version control system
Open source distributed version control system that is powerful, friendly,
and scalable.
.
It manages trees of files and subdirectories. In particular, it records
revisions of trees, representing their state at a particular point in time,
and information about those revisions and their relationships. Recording and
retrieving tree revisions is useful in several ways if you are writing
software or documents or doing similar creative work.
Python-Version: 2.4, 2.5
-anarres:moebius2>
Related branches
- Ian Clatworthy: Needs Information
- Robert Collins (community): Approve
- John A Meinel: Needs Fixing
-
Diff: 36 lines (+9/-0)2 files modifiedbzrlib/help_topics/en/configuration.txt (+6/-0)
bzrlib/repository.py (+3/-0)
- John A Meinel: Approve
-
Diff: 404 lines (+189/-39)9 files modifiedNEWS (+9/-0)
bzrlib/branch.py (+2/-0)
bzrlib/config.py (+26/-1)
bzrlib/help_topics/en/configuration.txt (+12/-0)
bzrlib/remote.py (+5/-0)
bzrlib/repofmt/pack_repo.py (+2/-8)
bzrlib/repository.py (+16/-9)
bzrlib/tests/blackbox/test_exceptions.py (+66/-11)
bzrlib/tests/test_config.py (+51/-10)
description: | updated |
Changed in bzr: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
Changed in bzr: | |
assignee: | nobody → Vincent Ladeuil (vila) |
status: | Confirmed → Fix Released |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ian Jackson wrote: /u/ian/ an-things/ moebius2/ .bzr/ is deprecated - please use 'bzr upgrade' to get better performance python2. 4/site- packages/ bzrlib
> Public bug reported:
>
> I have a situation where I need to interoperate between bzr 0.7-2 (as
> provided in Debian sarge), and more recent versions, at least for the
> moment.
>
> I therefore need a way to suppress the out-of-date branch format
> warning. I know the format is out of date but the newer formats are not
> compatible.
>
> The constant nagging is not just annoying - it also makes sensible
> output less visible and tends to lead to user error (eg, not noticing
> error messages which come out along with the warning). So this is a
> real useability problem.
>
> -anarres:moebius2> bzr status
> Format <RepositoryFormat6> for file://
> -anarres:moebius2> bzr --version
> Bazaar (bzr) 0.91.0
> Python interpreter: /usr/bin/python 2.4.4.final.0
> Python standard library: /usr/lib/python2.4
> bzrlib: /usr/lib/
> Bazaar configuration: /u/ian/.bazaar
> Bazaar log file: /u/ian/.bzr.log
The really cheap trick is to just do:
import bzrlib.repository repository. _deprecation_ warning_ done = True
bzrlib.
Or you can hack the file itself: repository. py' repository. py 2007-10-31 22:33:53 +0000 repository. py 2007-11-06 23:43:56 +0000
=== modified file 'bzrlib/
- --- bzrlib/
+++ bzrlib/
@@ -59,7 +59,7 @@
# Old formats display a warning, but only once warning_ done = False warning_ done = True
- -_deprecation_
+_deprecation_
class CommitBuilder( object) :
The former can be done in a simple python file, and put into plugins/ disable_ warning. py
~/.bazaar/
John enigmail. mozdev. org
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://
iD8DBQFHMPxsJde BCYSNAAMRAuxjAK CGsyCMmemWdUVaW 0ULDc2oLfsjoQCg h0FB NmyCL237E=
GcaiS1QSrkMaq+
=9JCb
-----END PGP SIGNATURE-----