~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2013-06-24 12:03:12 UTC
  • mfrom: (6437.77.2 2.5)
  • mto: This revision was merged to the branch mainline in revision 6579.
  • Revision ID: john@arbash-meinel.com-20130624120312-pmvck24x052csigx
Merge lp:bzr/2.5 r6515 to get the fix for bug #855155 (Dirstate.update_basis_by_delta)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2012, 2016 Canonical Ltd
 
1
# Copyright (C) 2005-2012 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.assertEqual(out,
 
543
        self.assertEquals(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.assertEqual(out, ('1 tag(s) updated.\n', ''))
 
546
        self.assertEquals(out, ('1 tag(s) updated.\n', ''))
547
547
 
548
 
        self.assertEqual(to_tree.branch.tags.lookup_tag('mytag'),
 
548
        self.assertEquals(to_tree.branch.tags.lookup_tag('mytag'),
549
549
                          'somerevid')
550
 
        self.assertEqual(to_tree.branch.last_revision(), revid1)
 
550
        self.assertEquals(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."""