~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/factory.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-11-03 17:58:33 UTC
  • mfrom: (14022.6.18 stacked-code-imports)
  • Revision ID: launchpad@pqm.canonical.com-20111103175833-r3vdx5ualne4ty3x
[r=rvb][ui=none][bug=485932] Stack code imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
477
477
        return epoch + timedelta(minutes=self.getUniqueInteger())
478
478
 
479
479
    def makeCodeImportSourceDetails(self, branch_id=None, rcstype=None,
480
 
                                    url=None, cvs_root=None, cvs_module=None):
 
480
                                    url=None, cvs_root=None, cvs_module=None,
 
481
                                    stacked_on_url=None):
481
482
        if branch_id is None:
482
483
            branch_id = self.getUniqueInteger()
483
484
        if rcstype is None:
499
500
        else:
500
501
            raise AssertionError("Unknown rcstype %r." % rcstype)
501
502
        return CodeImportSourceDetails(
502
 
            branch_id, rcstype, url, cvs_root, cvs_module)
 
503
            branch_id, rcstype, url, cvs_root, cvs_module,
 
504
            stacked_on_url=stacked_on_url)
503
505
 
504
506
 
505
507
class BareLaunchpadObjectFactory(ObjectFactory):