/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 breezy/tests/test_bundle.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-02-14 22:34:33 UTC
  • mfrom: (7268.11.6 location-purpose)
  • Revision ID: breezy.the.bot@gmail.com-20190214223433-gh3r94zi6j1mf1kt
Add a purpose argument to location dereference functions.

Merged from https://code.launchpad.net/~jelmer/brz/location-purpose/+merge/362940

Show diffs side-by-side

added added

removed removed

Lines of Context:
1848
1848
        class FooService(object):
1849
1849
            """A directory service that always returns source"""
1850
1850
 
1851
 
            def look_up(self, name, url):
 
1851
            def look_up(self, name, url, purpose=None):
1852
1852
                return 'source'
1853
1853
        directories.register('foo:', FooService, 'Testing directory service')
1854
1854
        self.addCleanup(directories.remove, 'foo:')