/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: Max Bowsher
  • Date: 2011-02-11 05:37:04 UTC
  • mto: This revision was merged to the branch mainline in revision 5659.
  • Revision ID: maxb@f2s.com-20110211053704-ywajvzlfspfisu2s
Also make lp-mirror use open_containing, so it still works when in a subdirectory of a branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
296
296
    def run(self, location='.'):
297
297
        from bzrlib.plugins.launchpad import lp_api
298
298
        from bzrlib.plugins.launchpad.lp_registration import LaunchpadService
299
 
        branch = _mod_branch.Branch.open(location)
 
299
        branch, _ = _mod_branch.Branch.open_containing(location)
300
300
        service = LaunchpadService()
301
301
        launchpad = lp_api.login(service)
302
302
        lp_branch = lp_api.LaunchpadBranch.from_bzr(launchpad, branch,