~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-08-12 16:12:23 UTC
  • mfrom: (6060.2.1 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20110812161223-hfvwsgbtb9vype5r
(vila) Merge 2.4 into trunk (Vincent Ladeuil)

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'))