~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Matt Nordhoff
  • Date: 2009-04-04 02:50:01 UTC
  • mfrom: (4253 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4256.
  • Revision ID: mnordhoff@mattnordhoff.com-20090404025001-z1403k0tatmc8l91
Merge bzr.dev, fixing conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
"""Tests for branch.pull behaviour."""
18
18
 
29
29
class TestPull(TestCaseWithBranch):
30
30
 
31
31
    def test_pull_convergence_simple(self):
32
 
        # when revisions are pulled, the left-most accessible parents must 
 
32
        # when revisions are pulled, the left-most accessible parents must
33
33
        # become the revision-history.
34
34
        parent = self.make_branch_and_tree('parent')
35
35
        parent.commit('1st post', rev_id='P1', allow_pointless=True)
127
127
 
128
128
    def capture_post_pull_hook(self, result):
129
129
        """Capture post pull hook calls to self.hook_calls.
130
 
        
 
130
 
131
131
        The call is logged, as is some state of the two branches.
132
132
        """
133
133
        if result.local_branch:
161
161
    def test_post_pull_bound_branch(self):
162
162
        # pulling to a bound branch should pass in the master branch to the
163
163
        # hook, allowing the correct number of emails to be sent, while still
164
 
        # allowing hooks that want to modify the target to do so to both 
 
164
        # allowing hooks that want to modify the target to do so to both
165
165
        # instances.
166
166
        target = self.make_branch('target')
167
167
        local = self.make_branch('local')