~ursinha/lp-qa-tools/bzr-tarmacland

« back to all changes in this revision

Viewing changes to pqm_submit.py

  • Committer: John Arbash Meinel
  • Date: 2007-11-14 15:47:10 UTC
  • Revision ID: john@arbash-meinel.com-20071114154710-q03csgcsiwl8yq4w
Now that we are using submit_branch instead of pqm_branch,
we need to make sure to use the public_location of the submit_branch.
Merge Directives already do this, so that you can use a local mirror of
a branch to generate your delta. However, we need to make sure that we
do the same when sending since we are re-using the same config option.

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
 
107
107
            if submit_location is None:
108
108
                raise errors.NoSubmitBranch(self.source_branch)
 
109
            # See if the submit_location has a public branch
 
110
            try:
 
111
                submit_branch = Branch.open(submit_location)
 
112
            except errors.NotBranchError:
 
113
                pass
 
114
            else:
 
115
                submit_public_location = submit_branch.get_public_branch()
 
116
                if submit_public_location is not None:
 
117
                    submit_location = submit_public_location
109
118
        self.submit_location = submit_location
110
119
 
111
120
        # Check that the message is okay to pass to PQM