~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Patch Queue Manager
  • Date: 2016-02-01 19:13:13 UTC
  • mfrom: (6614.2.2 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20160201191313-wdfvmfff1djde6oq
(vila) Release 2.7.0 (Vincent Ladeuil)

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."""