Merge lp:~jelmer/bzr-cvs/check-status into lp:bzr-cvs

Proposed by Jelmer Vernooij
Status: Merged
Approved by: Vincent Ladeuil
Approved revision: 6
Merged at revision: 6
Proposed branch: lp:~jelmer/bzr-cvs/check-status
Merge into: lp:bzr-cvs
Diff against target: 31 lines (+8/-5)
1 file modified
__init__.py (+8/-5)
To merge this branch: bzr merge lp:~jelmer/bzr-cvs/check-status
Reviewer Review Type Date Requested Status
Vincent Ladeuil Approve
Review via email: mp+53245@code.launchpad.net

Description of the change

Companion branch to lp:~jelmer/bzr/notsupported-check; return False in CVSDirFormat.is_supported() but implement a check_supported() call that raises a custom exception that explains what to do with CVS checkouts.

(This will probably need some updating after check_status() in lp:~jelmer/bzr/notsupported-check is renamed)

To post a comment you must log in.
Revision history for this message
John A Meinel (jameinel) wrote :

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

On 3/14/2011 2:59 PM, Jelmer Vernooij wrote:
> Jelmer Vernooij has proposed merging lp:~jelmer/bzr-cvs/check-status into lp:bzr-cvs.
>
> Requested reviews:
> Bazaar Developers (bzr)
> Related bugs:
> Bug #731311 in Bazaar: "support custom UnsupportedFormat errors"
> https://bugs.launchpad.net/bzr/+bug/731311
>
> For more details, see:
> https://code.launchpad.net/~jelmer/bzr-cvs/check-status/+merge/53245
>
> Companion branch to lp:~jelmer/bzr/notsupported-check; return False in CVSDirFormat.is_supported() but implement a check_supported() call that raises a custom exception that explains what to do with CVS checkouts.
>
> (This will probably need some updating after check_status() in lp:~jelmer/bzr/notsupported-check is renamed)

Approved, of course pending any renames of the 'check_status' function.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1+MeQACgkQJdeBCYSNAANleACfTOr9iOFDK4ZuIxga1LT+c3Da
J0sAoImMQglm13DqpBWqRw0DsLXCwA4M
=qzYh
-----END PGP SIGNATURE-----

Revision history for this message
Vincent Ladeuil (vila) wrote :

voting approve for jam to ease tracking

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '__init__.py'
2--- __init__.py 2011-03-12 00:42:55 +0000
3+++ __init__.py 2011-03-14 13:55:52 +0000
4@@ -44,6 +44,10 @@
5 "bzr, please see http://bazaar-vcs.org/BzrMigration and/or "
6 "https://launchpad.net/launchpad-bazaar/+faq/26.")
7
8+ def __init__(self, format):
9+ bzrlib.errors.BzrError.__init__(self)
10+ self.format = format
11+
12
13 class CVSDirFormat(ControlDirFormat):
14 """The CVS directory control format."""
15@@ -57,12 +61,11 @@
16 def initialize_on_transport(self, transport):
17 raise NotImplementedError(self.get_converter)
18
19- @classmethod
20- def _known_formats(self):
21- return set([CVSDirFormat()])
22+ def is_supported(self):
23+ return False
24
25- def open(self, transport, _found=False):
26- """Open this directory."""
27+ def check_status(self, allow_unsupported, recommend_upgrade=True,
28+ basedir=None):
29 raise CVSUnsupportedError(self)
30
31 @classmethod

Subscribers

People subscribed via source and target branches

to all changes: