~vila/bzr/deprecation-warning-preference

  • Committer: Vincent Ladeuil
  • Date: 2009-12-15 20:32:34 UTC
  • Revision ID: v.ladeuil+lp@free.fr-20091215203234-d8br6xqfq6pec40z
Move the _warn_if_deprecated call from repo.__init__ to
repo.lock_{read,write} so that branch.lock_{read,write} can call it. This
makes it possible to access locations.conf and branch.conf.

* bzrlib/tests/blackbox/test_exceptions.py:
(TestDeprecationWarning): Test that the suppress_warning
configuration variable is taken into account.

* bzrlib/repository.py:
(Repository.__init__): Delete very old and obsolete
comments. Don't warn about deprecations yet.
(Repository.lock_write, Repository.lock_read): The repo is about
to be locked, check deprecation.
(Repository._warn_if_deprecated): Use the branch config if
available or the global one othewrwise and check for the
suppress_warning variable.

* bzrlib/remote.py:
(RemoteRepository._warn_if_deprecated): Nothing to do here. 

* bzrlib/repofmt/pack_repo.py:
(KnitPackRepository._warn_if_deprecated): Delegate to base class
if needed.

* bzrlib/branch.py:
(BzrBranch.lock_write, BzrBranch.lock_read): Check repo
deprecation.

* bzrlib/help_topics/en/configuration.txt:
Fix the variable name and its description.
Filename Latest Rev Last Changed Committer Comment Size
..
bzrlib 1185.1.29 18 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
contrib 1185.1.29 18 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
doc 1185.1.29 18 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
man1 2425.1.1 17 years ago Robert Collins ``make docs`` now creates a man page at ``man1/bzr Diff
tools 1185.1.29 18 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
.bzrignore 4679.3.76 14 years ago John Arbash Meinel Rename StaticTupleInterner => SimpleSet. This is 1.2 KB Diff Download File
.rsyncexclude 1185.33.36 18 years ago Martin Pool Exclude more files from dumb-rsync upload 203 bytes Diff Download File
BRANCH.TODO 4325.3.4 15 years ago Johan Walles Merge from upstream. 150 bytes Diff Download File
File bzr 4778.1.3 14 years ago John Arbash Meinel Merge in 2.0.3 to get NEWS and update for 2.1.0b3 5.6 KB Diff Download File
bzr.ico 3688.3.3 15 years ago John Arbash Meinel An updated transparent icon for bzr. 12.7 KB Diff Download File
COPYING.txt 1861.2.9 17 years ago Alexander Belchenko rename gpl.txt => COPYING.txt 17.5 KB Diff Download File
INSTALL 2696.2.4 16 years ago Aaron Bentley Fix typo 1.4 KB Diff Download File
Makefile 4807 14 years ago Canonical.com Patch Queue Manager (mbp, trivial) additional doc building fix 14.9 KB Diff Download File
NEWS 4847 14 years ago Vincent Ladeuil Move the _warn_if_deprecated call from repo.__init 408 KB Diff Download File
profile_imports.py 4183.7.1 15 years ago Sabin Iacob update FSF mailing address 5.5 KB Diff Download File
README 4634.65.1 14 years ago Ian Clatworthy update for 2.0 2.2 KB Diff Download File
File setup.py 4668.1.4 14 years ago Canonical.com Patch Queue Manager (jam) Merge 2.0.2 final into 2.1.0b2 26.4 KB Diff Download File
TODO 2382.2.5 17 years ago Martin Pool Contents of TODO file moved into bug tracker 115 bytes Diff Download File