/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 bzrlib/tests/blackbox/test_pull.py

  • Committer: Patch Queue Manager
  • Date: 2016-04-21 04:39:02 UTC
  • mfrom: (6613.2.1 fix-gpl)
  • Revision ID: pqm@pqm.ubuntu.com-20160421043902-skyc5cmuqnh1b9la
(richard-wilbur) Update COPYING.txt from the original
 http://www.gnu.org/licenses/gpl-2.0.txt (Only differences were in
 whitespace.) Thanks to Petr Stodulka for pointing out the discrepancy.
 (Richard Wilbur)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2012 Canonical Ltd
 
1
# Copyright (C) 2005-2012, 2016 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
540
540
        to_tree.branch.tags.set_tag("mytag", "anotherrevid")
541
541
        revid1 = to_tree.commit('my commit')
542
542
        out = self.run_bzr(['pull', '-d', 'to', 'from'], retcode=1)
543
 
        self.assertEquals(out,
 
543
        self.assertEqual(out,
544
544
            ('No revisions to pull.\nConflicting tags:\n    mytag\n', ''))
545
545
        out = self.run_bzr(['pull', '-d', 'to', '--overwrite-tags', 'from'])
546
 
        self.assertEquals(out, ('1 tag(s) updated.\n', ''))
 
546
        self.assertEqual(out, ('1 tag(s) updated.\n', ''))
547
547
 
548
 
        self.assertEquals(to_tree.branch.tags.lookup_tag('mytag'),
 
548
        self.assertEqual(to_tree.branch.tags.lookup_tag('mytag'),
549
549
                          'somerevid')
550
 
        self.assertEquals(to_tree.branch.last_revision(), revid1)
 
550
        self.assertEqual(to_tree.branch.last_revision(), revid1)
551
551
 
552
552
    def test_pull_tag_overwrite(self):
553
553
        """pulling tags with --overwrite only reports changed tags."""