/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/__init__.py

  • Committer: Aaron Bentley
  • Date: 2010-11-23 14:18:43 UTC
  • mto: This revision was merged to the branch mainline in revision 5549.
  • Revision ID: aaron@aaronbentley.com-20101123141843-s1u5y2n5540pj5jf
Tighten revno check, avoid creating branches on lp.

Show diffs side-by-side

added added

removed removed

Lines of Context:
399
399
            service = lp_registration.LaunchpadService()
400
400
            launchpad = lp_api.login(service)
401
401
            pb.update('Finding Launchpad branch')
402
 
            lpb = lp_api.LaunchpadBranch.from_bzr(launchpad, b)
 
402
            lpb = lp_api.LaunchpadBranch.from_bzr(launchpad, b,
 
403
                                                  create_missing=False)
403
404
            pb.update('Finding proposals')
404
405
            merged = list(lpb.lp.getMergeProposals(status=['Merged'],
405
406
                                                   merged_revnos=[revno]))
433
434
    @staticmethod
434
435
    def _is_revno_spec(spec):
435
436
        try:
436
 
            int(spec.spec)
 
437
            int(spec.user_spec)
437
438
        except ValueError:
438
439
            return False
439
440
        else: