/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_branch.py

MergeĀ upstream.

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
 
18
18
"""Black-box tests for bzr branch."""
291
291
        # upwards without agreement from bzr's network support maintainers.
292
292
        self.assertEqual(10, rpc_count)
293
293
 
 
294
    def test_branch_from_trivial_stacked_branch_streaming_acceptance(self):
 
295
        self.setup_smart_server_with_call_log()
 
296
        t = self.make_branch_and_tree('trunk')
 
297
        for count in range(8):
 
298
            t.commit(message='commit %d' % count)
 
299
        tree2 = t.branch.bzrdir.sprout('feature', stacked=True
 
300
            ).open_workingtree()
 
301
        tree2.commit('feature change')
 
302
        self.reset_smart_call_log()
 
303
        out, err = self.run_bzr(['branch', self.get_url('feature'),
 
304
            'local-target'])
 
305
        # This figure represent the amount of work to perform this use case. It
 
306
        # is entirely ok to reduce this number if a test fails due to rpc_count
 
307
        # being too low. If rpc_count increases, more network roundtrips have
 
308
        # become necessary for this use case. Please do not adjust this number
 
309
        # upwards without agreement from bzr's network support maintainers.
 
310
        self.assertLength(23, self.hpss_calls)
 
311
 
294
312
 
295
313
class TestRemoteBranch(TestCaseWithSFTPServer):
296
314