/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/lp_registration.py

  • Committer: Robert Collins
  • Date: 2008-04-04 00:43:07 UTC
  • mfrom: (3331 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3333.
  • Revision ID: robertc@robertcollins.net-20080404004307-0whomfhm3yal2rvw
Resolve conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
                 author_email='',
206
206
                 product_name='',
207
207
                 ):
208
 
        assert branch_url, 'branch_url %r is invalid' % branch_url
 
208
        if not branch_url:
 
209
            raise errors.InvalidURL(branch_url, "You need to specify a non-empty branch URL.")
209
210
        self.branch_url = branch_url
210
211
        if branch_name:
211
212
            self.branch_name = branch_name
257
258
    _authenticated = False
258
259
 
259
260
    def __init__(self, path):
260
 
        assert path
 
261
        if not path:
 
262
            raise errors.InvalidURL(path=path,
 
263
                                    extra="You must specify a product.")
261
264
        self.path = path
262
265
 
263
266
    def _request_params(self):