~bzr-pqm/bzr/bzr.dev

  • Committer: Martin Pool
  • Date: 2006-10-15 11:57:58 UTC
  • Revision ID: mbp@sourcefrog.net-20061015115758-041391cf08503621
Clean up BzrNewError, other exception classes and users.

This cleans up the probably-mistaken BzrNewError behaviour of using error
class docstrings as their format string.  Instead errors can define a _fmt
attribute with the same meaning.  The docstring is now reserved for its
regular purpose of documentation for programmers.  This behaviour is added to
BzrError.  BzrNewError is left in place for compatibility but no builtin
errors use it anymore and it gives a deprecation warning on construction.

BzrError now accepts either a single preformatted string, or a set of named
parameters to be substituted in to a format string for that class.  This 
behaviour is cleaned up and a couple of callers that depended on the
Python2.4-style exception args tuple are fixed.

Display of unprintable errors is slightly more robust.

errors.IncompatibleFormat was defined twice (shadowing the first
definition), so one use was disambiguated to IncompatibleBundleFormat.

UnsupportedEOLMarker called the wrong superclass constructor.

test_time_creates_benchmark_in_result was too dependent on benchmark
timing and has been loosened.

Some error representations changed slightly because of this (e.g. in use
of punctuation.)
Filename Latest Rev Last Changed Committer Comment Size
..
bzrlib 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
contrib 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
doc 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
tools 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
.bzrignore 1819.1.6 18 years ago Jan Balster added .perf-history to the ignore file 513 bytes Diff Download File
.rsyncexclude 1185.33.36 19 years ago Martin Pool Exclude more files from dumb-rsync upload 203 bytes Diff Download File
BRANCH.TODO 2018.1.12 18 years ago Robert Collins Trivially cleanup BRANCH.TODO 147 bytes Diff Download File
build-api 1185.33.32 19 years ago Martin Pool [merge] fix \t in commit messages 100 bytes Diff Download File
File bzr 2055.1.1 18 years ago John Arbash Meinel Find python2.5 if 2.4 cannot be found 2.7 KB Diff Download File
bzr.ico 1861.2.16 18 years ago Alexander Belchenko new official bzr.ico 7.2 KB Diff Download File
COPYING.txt 1861.2.9 18 years ago Alexander Belchenko rename gpl.txt => COPYING.txt 17.5 KB Diff Download File
File generate_docs.py 1861.2.7 18 years ago Alexander Belchenko merge bzr.dev 2.9 KB Diff Download File
HACKING 2067.3.1 18 years ago Martin Pool Clean up BzrNewError, other exception classes and 22 KB Diff Download File
INSTALL 1185.16.80 19 years ago Martin Pool Update news and readme - better explanation of de 437 bytes Diff Download File
Makefile 1982.2.1 18 years ago Alexander Belchenko small but important fix for 'make installer' depen 2.7 KB Diff Download File
NEWS 1551.8.39 18 years ago Aaron Bentley Fix diff3 conflict-reporting bug 75.7 KB Diff Download File
NEWS.developers 1185.16.35 19 years ago Martin Pool - stub for revision properties 910 bytes Diff Download File
profile_imports.py 1996.1.22 18 years ago John Arbash Meinel Update --profile-imports to support the new lazy_i 5.1 KB Diff Download File
README 2037.1.1 18 years ago Robert Collins (Robert Collins) bzr 0.11rc1 has branch, bump bzr. 759 bytes Diff Download File
setup.py 1963.2.6 18 years ago Robey Pointer pychecker is on crack; go back to using 'is None'. 6.6 KB Diff Download File
TODO 1185.82.134 18 years ago Aaron Bentley Merge from bzr.dev 15.7 KB Diff Download File