~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/codehosting/codeimport/worker.py

  • Committer: Michael Hudson
  • Date: 2009-03-27 00:09:15 UTC
  • mto: (9905.7.1 hg-imports)
  • mto: This revision was merged to the branch mainline in revision 9938.
  • Revision ID: michael.hudson@canonical.com-20090327000915-sseqyl3r008xwpk7
* implementation and tests for bzr-svn puller
* horrors to get around bzr-svn depending on python 2.5
* still doesn't work, probably some annoying bzr/bzr-svn compatibility issue.

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
        """Convert command line-style arguments to an instance."""
143
143
        branch_id = int(arguments.pop(0))
144
144
        rcstype = arguments.pop(0)
145
 
        if rcstype == 'svn':
 
145
        if rcstype in ['svn', 'bzr-svn']:
146
146
            [svn_branch_url] = arguments
147
147
            cvs_root = cvs_module = git_repo_url = None
148
148
        elif rcstype == 'cvs':
182
182
        """Return a list of arguments suitable for passing to a child process.
183
183
        """
184
184
        result = [str(self.branch_id), self.rcstype]
185
 
        if self.rcstype == 'svn':
 
185
        if self.rcstype in ['svn', 'bzr-svn']:
186
186
            result.append(self.svn_branch_url)
187
187
        elif self.rcstype == 'cvs':
188
188
            result.append(self.cvs_root)