~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2012-01-09 20:55:07 UTC
  • mto: This revision was merged to the branch mainline in revision 6468.
  • Revision ID: v.ladeuil+lp@free.fr-20120109205507-2i3en5r4w4ohdchj
Use idioms coherently and add comments to make their purpose clearer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2010 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
21
21
import sys
22
22
 
23
23
from bzrlib import (
 
24
    branch,
24
25
    debug,
 
26
    osutils,
25
27
    remote,
 
28
    tests,
 
29
    uncommit,
26
30
    urlutils,
 
31
    workingtree,
27
32
    )
28
33
 
29
 
from bzrlib.branch import Branch
30
34
from bzrlib.directory_service import directories
31
 
from bzrlib.osutils import pathjoin
32
 
from bzrlib.tests.blackbox import ExternalBase
33
 
from bzrlib.uncommit import uncommit
34
 
from bzrlib.workingtree import WorkingTree
35
 
 
36
 
 
37
 
class TestPull(ExternalBase):
 
35
from bzrlib.tests import (
 
36
    fixtures,
 
37
    script,
 
38
    )
 
39
 
 
40
 
 
41
class TestPull(tests.TestCaseWithTransport):
38
42
 
39
43
    def example_branch(self, path='.'):
40
44
        tree = self.make_branch_and_tree(path)
41
45
        self.build_tree_contents([
42
 
            (pathjoin(path, 'hello'),   'foo'),
43
 
            (pathjoin(path, 'goodbye'), 'baz')])
 
46
            (osutils.pathjoin(path, 'hello'),   'foo'),
 
47
            (osutils.pathjoin(path, 'goodbye'), 'baz')])
44
48
        tree.add('hello')
45
49
        tree.commit(message='setup')
46
50
        tree.add('goodbye')
50
54
    def test_pull(self):
51
55
        """Pull changes from one branch to another."""
52
56
        a_tree = self.example_branch('a')
53
 
        os.chdir('a')
54
 
        self.run_bzr('pull', retcode=3)
55
 
        self.run_bzr('missing', retcode=3)
56
 
        self.run_bzr('missing .')
57
 
        self.run_bzr('missing')
 
57
        base_rev = a_tree.branch.last_revision()
 
58
        self.run_bzr('pull', retcode=3, working_dir='a')
 
59
        self.run_bzr('missing', retcode=3, working_dir='a')
 
60
        self.run_bzr('missing .', working_dir='a')
 
61
        self.run_bzr('missing', working_dir='a')
58
62
        # this will work on windows because we check for the same branch
59
63
        # in pull - if it fails, it is a regression
60
 
        self.run_bzr('pull')
61
 
        self.run_bzr('pull /', retcode=3)
 
64
        self.run_bzr('pull', working_dir='a')
 
65
        self.run_bzr('pull /', retcode=3, working_dir='a')
62
66
        if sys.platform not in ('win32', 'cygwin'):
63
 
            self.run_bzr('pull')
 
67
            self.run_bzr('pull', working_dir='a')
64
68
 
65
 
        os.chdir('..')
66
69
        b_tree = a_tree.bzrdir.sprout('b').open_workingtree()
67
 
        os.chdir('b')
68
 
        self.run_bzr('pull')
69
 
        os.mkdir('subdir')
 
70
        self.run_bzr('pull', working_dir='b')
 
71
        os.mkdir('b/subdir')
70
72
        b_tree.add('subdir')
71
 
        b_tree.commit(message='blah', allow_pointless=True)
72
 
 
73
 
        os.chdir('..')
74
 
        a = Branch.open('a')
75
 
        b = Branch.open('b')
76
 
        self.assertEqual(a.revision_history(), b.revision_history()[:-1])
77
 
 
78
 
        os.chdir('a')
79
 
        self.run_bzr('pull ../b')
80
 
        self.assertEqual(a.revision_history(), b.revision_history())
 
73
        new_rev = b_tree.commit(message='blah', allow_pointless=True)
 
74
 
 
75
        a = branch.Branch.open('a')
 
76
        b = branch.Branch.open('b')
 
77
        self.assertEqual(a.last_revision(), base_rev)
 
78
        self.assertEqual(b.last_revision(), new_rev)
 
79
 
 
80
        self.run_bzr('pull ../b', working_dir='a')
 
81
        self.assertEqual(a.last_revision(), b.last_revision())
81
82
        a_tree.commit(message='blah2', allow_pointless=True)
82
83
        b_tree.commit(message='blah3', allow_pointless=True)
83
84
        # no overwrite
84
 
        os.chdir('../b')
85
 
        self.run_bzr('pull ../a', retcode=3)
86
 
        os.chdir('..')
 
85
        self.run_bzr('pull ../a', retcode=3, working_dir='b')
87
86
        b_tree.bzrdir.sprout('overwriteme')
88
 
        os.chdir('overwriteme')
89
 
        self.run_bzr('pull --overwrite ../a')
90
 
        overwritten = Branch.open('.')
91
 
        self.assertEqual(overwritten.revision_history(),
92
 
                         a.revision_history())
 
87
        self.run_bzr('pull --overwrite ../a', working_dir='overwriteme')
 
88
        overwritten = branch.Branch.open('overwriteme')
 
89
        self.assertEqual(overwritten.last_revision(),
 
90
                         a.last_revision())
93
91
        a_tree.merge_from_branch(b_tree.branch)
94
92
        a_tree.commit(message="blah4", allow_pointless=True)
95
 
        os.chdir('../b/subdir')
96
 
        self.run_bzr('pull ../../a')
97
 
        self.assertEqual(a.revision_history()[-1], b.revision_history()[-1])
98
 
        sub_tree = WorkingTree.open_containing('.')[0]
 
93
 
 
94
        self.run_bzr('pull ../../a', working_dir='b/subdir')
 
95
        self.assertEqual(a.last_revision(), b.last_revision())
 
96
        sub_tree = workingtree.WorkingTree.open_containing('b/subdir')[0]
99
97
        sub_tree.commit(message="blah5", allow_pointless=True)
100
98
        sub_tree.commit(message="blah6", allow_pointless=True)
101
 
        os.chdir('..')
102
 
        self.run_bzr('pull ../a')
103
 
        os.chdir('../a')
 
99
        self.run_bzr('pull ../a', working_dir='b')
104
100
        a_tree.commit(message="blah7", allow_pointless=True)
105
101
        a_tree.merge_from_branch(b_tree.branch)
106
102
        a_tree.commit(message="blah8", allow_pointless=True)
107
 
        self.run_bzr('pull ../b')
108
 
        self.run_bzr('pull ../b')
 
103
        self.run_bzr('pull ../b', working_dir='a')
 
104
        self.run_bzr('pull ../b', working_dir='a')
109
105
 
110
106
    def test_pull_dash_d(self):
111
107
        self.example_branch('a')
131
127
 
132
128
        b_tree = a_tree.bzrdir.sprout('b',
133
129
                   revision_id=a_tree.branch.get_rev_id(1)).open_workingtree()
134
 
        os.chdir('b')
135
 
        self.run_bzr('pull -r 2')
136
 
        a = Branch.open('../a')
137
 
        b = Branch.open('.')
 
130
        self.run_bzr('pull -r 2', working_dir='b')
 
131
        a = branch.Branch.open('a')
 
132
        b = branch.Branch.open('b')
138
133
        self.assertEqual(a.revno(),4)
139
134
        self.assertEqual(b.revno(),2)
140
 
        self.run_bzr('pull -r 3')
 
135
        self.run_bzr('pull -r 3', working_dir='b')
141
136
        self.assertEqual(b.revno(),3)
142
 
        self.run_bzr('pull -r 4')
143
 
        self.assertEqual(a.revision_history(), b.revision_history())
 
137
        self.run_bzr('pull -r 4', working_dir='b')
 
138
        self.assertEqual(a.last_revision(), b.last_revision())
144
139
 
 
140
    def test_pull_tags(self):
 
141
        """Tags are updated by pull, and revisions named in those tags are
 
142
        fetched.
 
143
        """
 
144
        # Make a source, sprout a target off it
 
145
        builder = self.make_branch_builder('source')
 
146
        source = fixtures.build_branch_with_non_ancestral_rev(builder)
 
147
        source.lock_write()
 
148
        try:
 
149
            source.get_config_stack().set('branch.fetch_tags', True)
 
150
        finally:
 
151
            source.unlock()
 
152
        target_bzrdir = source.bzrdir.sprout('target')
 
153
        source.tags.set_tag('tag-a', 'rev-2')
 
154
        # Pull from source
 
155
        self.run_bzr('pull -d target source')
 
156
        target = target_bzrdir.open_branch()
 
157
        # The tag is present, and so is its revision.
 
158
        self.assertEqual('rev-2', target.tags.lookup_tag('tag-a'))
 
159
        target.repository.get_revision('rev-2')
145
160
 
146
161
    def test_overwrite_uptodate(self):
147
162
        # Make sure pull --overwrite overwrites
160
175
        self.build_tree_contents([('a/foo', 'a third change')])
161
176
        a_tree.commit(message='a third change')
162
177
 
163
 
        rev_history_a = a_tree.branch.revision_history()
164
 
        self.assertEqual(len(rev_history_a), 3)
 
178
        self.assertEqual(a_tree.branch.last_revision_info()[0], 3)
165
179
 
166
180
        b_tree.merge_from_branch(a_tree.branch)
167
181
        b_tree.commit(message='merge')
168
182
 
169
 
        self.assertEqual(len(b_tree.branch.revision_history()), 2)
170
 
 
171
 
        os.chdir('b')
172
 
        self.run_bzr('pull --overwrite ../a')
173
 
        rev_history_b = b_tree.branch.revision_history()
174
 
        self.assertEqual(len(rev_history_b), 3)
175
 
 
176
 
        self.assertEqual(rev_history_b, rev_history_a)
 
183
        self.assertEqual(b_tree.branch.last_revision_info()[0], 2)
 
184
 
 
185
        self.run_bzr('pull --overwrite ../a', working_dir='b')
 
186
        (last_revinfo_b) = b_tree.branch.last_revision_info()
 
187
        self.assertEqual(last_revinfo_b[0], 3)
 
188
        self.assertEqual(last_revinfo_b[1], a_tree.branch.last_revision())
177
189
 
178
190
    def test_overwrite_children(self):
179
191
        # Make sure pull --overwrite sets the revision-history
191
203
        self.build_tree_contents([('a/foo', 'a third change')])
192
204
        a_tree.commit(message='a third change')
193
205
 
194
 
        self.assertEqual(len(a_tree.branch.revision_history()), 3)
 
206
        self.assertEqual(a_tree.branch.last_revision_info()[0], 3)
195
207
 
196
208
        b_tree.merge_from_branch(a_tree.branch)
197
209
        b_tree.commit(message='merge')
198
210
 
199
 
        self.assertEqual(len(b_tree.branch.revision_history()), 2)
 
211
        self.assertEqual(b_tree.branch.last_revision_info()[0], 2)
200
212
 
201
213
        self.build_tree_contents([('a/foo', 'a fourth change\n')])
202
214
        a_tree.commit(message='a fourth change')
203
215
 
204
 
        rev_history_a = a_tree.branch.revision_history()
205
 
        self.assertEqual(len(rev_history_a), 4)
 
216
        rev_info_a = a_tree.branch.last_revision_info()
 
217
        self.assertEqual(rev_info_a[0], 4)
206
218
 
207
219
        # With convergence, we could just pull over the
208
220
        # new change, but with --overwrite, we want to switch our history
209
 
        os.chdir('b')
210
 
        self.run_bzr('pull --overwrite ../a')
211
 
        rev_history_b = b_tree.branch.revision_history()
212
 
        self.assertEqual(len(rev_history_b), 4)
213
 
 
214
 
        self.assertEqual(rev_history_b, rev_history_a)
 
221
        self.run_bzr('pull --overwrite ../a', working_dir='b')
 
222
        rev_info_b = b_tree.branch.last_revision_info()
 
223
        self.assertEqual(rev_info_b[0], 4)
 
224
        self.assertEqual(rev_info_b, rev_info_a)
215
225
 
216
226
    def test_pull_remember(self):
217
227
        """Pull changes from one branch to another and test parent location."""
218
 
        transport = self.get_transport()
 
228
        t = self.get_transport()
219
229
        tree_a = self.make_branch_and_tree('branch_a')
220
230
        branch_a = tree_a.branch
221
231
        self.build_tree(['branch_a/a'])
230
240
        tree_a.commit('commit b')
231
241
        # reset parent
232
242
        parent = branch_b.get_parent()
233
 
        branch_b.set_parent(None)
 
243
        branch_b = branch.Branch.open('branch_b')
 
244
        branch_b.lock_write()
 
245
        try:
 
246
            branch_b.set_parent(None)
 
247
        finally:
 
248
            branch_b.unlock()
234
249
        self.assertEqual(None, branch_b.get_parent())
235
250
        # test pull for failure without parent set
236
 
        os.chdir('branch_b')
237
 
        out = self.run_bzr('pull', retcode=3)
 
251
        out = self.run_bzr('pull', retcode=3, working_dir='branch_b')
238
252
        self.assertEqual(out,
239
253
                ('','bzr: ERROR: No pull location known or specified.\n'))
240
254
        # test implicit --remember when no parent set, this pull conflicts
241
 
        self.build_tree(['d'])
 
255
        self.build_tree(['branch_b/d'])
242
256
        tree_b.add('d')
243
257
        tree_b.commit('commit d')
244
 
        out = self.run_bzr('pull ../branch_a', retcode=3)
 
258
        out = self.run_bzr('pull ../branch_a', retcode=3,
 
259
                           working_dir='branch_b')
245
260
        self.assertEqual(out,
246
261
                ('','bzr: ERROR: These branches have diverged.'
247
262
                    ' Use the missing command to see how.\n'
248
263
                    'Use the merge command to reconcile them.\n'))
249
 
        self.assertEqual(branch_b.get_parent(), parent)
 
264
        tree_b = tree_b.bzrdir.open_workingtree()
 
265
        branch_b = tree_b.branch
 
266
        self.assertEqual(parent, branch_b.get_parent())
250
267
        # test implicit --remember after resolving previous failure
251
 
        uncommit(branch=branch_b, tree=tree_b)
252
 
        transport.delete('branch_b/d')
253
 
        self.run_bzr('pull')
 
268
        uncommit.uncommit(branch=branch_b, tree=tree_b)
 
269
        t.delete('branch_b/d')
 
270
        self.run_bzr('pull', working_dir='branch_b')
 
271
        # Refresh the branch object as 'pull' modified it
 
272
        branch_b = branch_b.bzrdir.open_branch()
254
273
        self.assertEqual(branch_b.get_parent(), parent)
255
274
        # test explicit --remember
256
 
        self.run_bzr('pull ../branch_c --remember')
257
 
        self.assertEqual(branch_b.get_parent(),
258
 
                          branch_c.bzrdir.root_transport.base)
 
275
        self.run_bzr('pull ../branch_c --remember', working_dir='branch_b')
 
276
        # Refresh the branch object as 'pull' modified it
 
277
        branch_b = branch_b.bzrdir.open_branch()
 
278
        self.assertEqual(branch_c.bzrdir.root_transport.base,
 
279
                         branch_b.get_parent())
259
280
 
260
281
    def test_pull_bundle(self):
261
282
        from bzrlib.testament import Testament
262
283
        # Build up 2 trees and prepare for a pull
263
284
        tree_a = self.make_branch_and_tree('branch_a')
264
 
        f = open('branch_a/a', 'wb')
265
 
        f.write('hello')
266
 
        f.close()
 
285
        with open('branch_a/a', 'wb') as f:
 
286
            f.write('hello')
267
287
        tree_a.add('a')
268
288
        tree_a.commit('message')
269
289
 
270
290
        tree_b = tree_a.bzrdir.sprout('branch_b').open_workingtree()
271
291
 
272
292
        # Make a change to 'a' that 'b' can pull
273
 
        f = open('branch_a/a', 'wb')
274
 
        f.write('hey there')
275
 
        f.close()
 
293
        with open('branch_a/a', 'wb') as f:
 
294
            f.write('hey there')
276
295
        tree_a.commit('message')
277
296
 
278
297
        # Create the bundle for 'b' to pull
279
 
        os.chdir('branch_a')
280
 
        self.run_bzr('bundle ../branch_b -o ../bundle')
 
298
        self.run_bzr('bundle ../branch_b -o ../bundle', working_dir='branch_a')
281
299
 
282
 
        os.chdir('../branch_b')
283
 
        out, err = self.run_bzr('pull ../bundle')
 
300
        out, err = self.run_bzr('pull ../bundle', working_dir='branch_b')
284
301
        self.assertEqual(out,
285
302
                         'Now on revision 2.\n')
286
303
        self.assertEqual(err,
287
304
                ' M  a\nAll changes applied successfully.\n')
288
305
 
289
 
        self.assertEqualDiff(tree_a.branch.revision_history(),
290
 
                             tree_b.branch.revision_history())
 
306
        self.assertEqualDiff(tree_a.branch.last_revision(),
 
307
                             tree_b.branch.last_revision())
291
308
 
292
309
        testament_a = Testament.from_revision(tree_a.branch.repository,
293
310
                                              tree_a.get_parent_ids()[0])
297
314
                             testament_b.as_text())
298
315
 
299
316
        # it is legal to attempt to pull an already-merged bundle
300
 
        out, err = self.run_bzr('pull ../bundle')
 
317
        out, err = self.run_bzr('pull ../bundle', working_dir='branch_b')
301
318
        self.assertEqual(err, '')
302
 
        self.assertEqual(out, 'No revisions to pull.\n')
 
319
        self.assertEqual(out, 'No revisions or tags to pull.\n')
303
320
 
304
321
    def test_pull_verbose_no_files(self):
305
322
        """Pull --verbose should not list modified files"""
358
375
    def test_pull_verbose_uses_default_log(self):
359
376
        tree = self.example_branch('source')
360
377
        target = self.make_branch_and_tree('target')
361
 
        target_config = target.branch.get_config()
362
 
        target_config.set_user_option('log_format', 'short')
 
378
        target.branch.lock_write()
 
379
        try:
 
380
            target.branch.get_config_stack().set('log_format', 'short')
 
381
        finally:
 
382
            target.branch.unlock()
363
383
        out = self.run_bzr('pull -v source -d target')[0]
364
384
        self.assertContainsRe(out, r'\n {4}1 .*\n {6}setup\n')
365
385
        self.assertNotContainsRe(
366
386
            out, r'revno: 1\ncommitter: .*\nbranch nick: source')
367
387
 
 
388
    def test_pull_smart_bound_branch(self):
 
389
        self.setup_smart_server_with_call_log()
 
390
        parent = self.make_branch_and_tree('parent')
 
391
        parent.commit(message='first commit')
 
392
        child = parent.bzrdir.sprout('child').open_workingtree()
 
393
        child.commit(message='second commit')
 
394
        checkout = parent.branch.create_checkout('checkout')
 
395
        self.run_bzr(['pull', self.get_url('child')], working_dir='checkout')
 
396
 
368
397
    def test_pull_smart_stacked_streaming_acceptance(self):
369
398
        """'bzr pull -r 123' works on stacked, smart branches, even when the
370
399
        revision specified by the revno is only present in the fallback
392
421
        # being too low. If rpc_count increases, more network roundtrips have
393
422
        # become necessary for this use case. Please do not adjust this number
394
423
        # upwards without agreement from bzr's network support maintainers.
395
 
        self.assertLength(18, self.hpss_calls)
396
 
        remote = Branch.open('stacked')
 
424
        self.assertLength(19, self.hpss_calls)
 
425
        self.assertLength(1, self.hpss_connections)
 
426
        remote = branch.Branch.open('stacked')
397
427
        self.assertEndsWith(remote.get_stacked_on_url(), '/parent')
398
 
    
 
428
 
399
429
    def test_pull_cross_format_warning(self):
400
430
        """You get a warning for probably slow cross-format pulls.
401
431
        """
453
483
        out, err = self.run_bzr(['pull', '-d', 'to', 'from'])
454
484
        self.assertContainsRe(err,
455
485
            "(?m)Fetching into experimental format")
 
486
 
 
487
    def test_pull_show_base(self):
 
488
        """bzr pull supports --show-base
 
489
 
 
490
        see https://bugs.launchpad.net/bzr/+bug/202374"""
 
491
        # create two trees with conflicts, setup conflict, check that
 
492
        # conflicted file looks correct
 
493
        a_tree = self.example_branch('a')
 
494
        b_tree = a_tree.bzrdir.sprout('b').open_workingtree()
 
495
 
 
496
        with open(osutils.pathjoin('a', 'hello'),'wt') as f:
 
497
            f.write('fee')
 
498
        a_tree.commit('fee')
 
499
 
 
500
        with open(osutils.pathjoin('b', 'hello'),'wt') as f:
 
501
            f.write('fie')
 
502
 
 
503
        out,err=self.run_bzr(['pull','-d','b','a','--show-base'])
 
504
 
 
505
        # check for message here
 
506
        self.assertEqual(
 
507
            err,
 
508
            ' M  hello\nText conflict in hello\n1 conflicts encountered.\n')
 
509
 
 
510
        self.assertEqualDiff('<<<<<<< TREE\n'
 
511
                             'fie||||||| BASE-REVISION\n'
 
512
                             'foo=======\n'
 
513
                             'fee>>>>>>> MERGE-SOURCE\n',
 
514
                             open(osutils.pathjoin('b', 'hello')).read())
 
515
 
 
516
    def test_pull_show_base_working_tree_only(self):
 
517
        """--show-base only allowed if there's a working tree
 
518
 
 
519
        see https://bugs.launchpad.net/bzr/+bug/202374"""
 
520
        # create a branch, see that --show-base fails
 
521
        self.make_branch('from')
 
522
        self.make_branch('to')
 
523
        out=self.run_bzr(['pull','-d','to','from','--show-base'],retcode=3)
 
524
        self.assertEqual(
 
525
            out, ('','bzr: ERROR: Need working tree for --show-base.\n'))
 
526
 
 
527
    def test_pull_tag_conflicts(self):
 
528
        """pulling tags with conflicts will change the exit code"""
 
529
        # create a branch, see that --show-base fails
 
530
        from_tree = self.make_branch_and_tree('from')
 
531
        from_tree.branch.tags.set_tag("mytag", "somerevid")
 
532
        to_tree = self.make_branch_and_tree('to')
 
533
        to_tree.branch.tags.set_tag("mytag", "anotherrevid")
 
534
        out = self.run_bzr(['pull','-d','to','from'],retcode=1)
 
535
        self.assertEqual(out,
 
536
            ('No revisions to pull.\nConflicting tags:\n    mytag\n', ''))
 
537
 
 
538
    def test_pull_tag_notification(self):
 
539
        """pulling tags with conflicts will change the exit code"""
 
540
        # create a branch, see that --show-base fails
 
541
        from_tree = self.make_branch_and_tree('from')
 
542
        from_tree.branch.tags.set_tag("mytag", "somerevid")
 
543
        to_tree = self.make_branch_and_tree('to')
 
544
        out = self.run_bzr(['pull', '-d', 'to', 'from'])
 
545
        self.assertEqual(out,
 
546
            ('1 tag(s) updated.\n', ''))
 
547
 
 
548
    def test_pull_tag_overwrite(self):
 
549
        """pulling tags with --overwrite only reports changed tags."""
 
550
        # create a branch, see that --show-base fails
 
551
        from_tree = self.make_branch_and_tree('from')
 
552
        from_tree.branch.tags.set_tag("mytag", "somerevid")
 
553
        to_tree = self.make_branch_and_tree('to')
 
554
        to_tree.branch.tags.set_tag("mytag", "somerevid")
 
555
        out = self.run_bzr(['pull', '--overwrite', '-d', 'to', 'from'])
 
556
        self.assertEqual(out,
 
557
            ('No revisions or tags to pull.\n', ''))
 
558
 
 
559
 
 
560
class TestPullOutput(script.TestCaseWithTransportAndScript):
 
561
 
 
562
    def test_pull_log_format(self):
 
563
        self.run_script("""
 
564
            $ bzr init trunk
 
565
            Created a standalone tree (format: 2a)
 
566
            $ cd trunk
 
567
            $ echo foo > file
 
568
            $ bzr add
 
569
            adding file
 
570
            $ bzr commit -m 'we need some foo'
 
571
            2>Committing to:...trunk/
 
572
            2>added file
 
573
            2>Committed revision 1.
 
574
            $ cd ..
 
575
            $ bzr init feature
 
576
            Created a standalone tree (format: 2a)
 
577
            $ cd feature
 
578
            $ bzr pull -v ../trunk -Olog_format=line
 
579
            Now on revision 1.
 
580
            Added Revisions:
 
581
            1: jrandom@example.com ...we need some foo
 
582
            2>+N  file
 
583
            2>All changes applied successfully.
 
584
            """)