~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_branch/test_pull.py

  • Committer: John Arbash Meinel
  • Date: 2011-08-09 14:18:05 UTC
  • mto: (6015.9.8 2.4)
  • mto: This revision was merged to the branch mainline in revision 6066.
  • Revision ID: john@arbash-meinel.com-20110809141805-9lq771mvpsukl0pe
Catch a couple more cases that test tag fetching.

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
        except errors.TagsNotSupported:
157
157
            raise TestNotApplicable('format does not support tags.')
158
158
        source.tags.set_tag('tag-a', 'rev-2')
 
159
        source.get_config().set_user_option('branch.fetch_tags', 'True')
159
160
        target.pull(source)
160
161
        # The tag is present, and so is its revision.
161
162
        self.assertEqual('rev-2', target.tags.lookup_tag('tag-a'))
177
178
            source.tags.set_tag('tag-a', 'rev-2')
178
179
        except errors.TagsNotSupported:
179
180
            raise TestNotApplicable('format does not support tags.')
 
181
        source.get_config().set_user_option('branch.fetch_tags', 'True')
180
182
        target.pull(source, 'rev-2-again')
181
183
        # The tag is present, and so is its revision.
182
184
        self.assertEqual('rev-2', target.tags.lookup_tag('tag-a'))