def test_stacked_pull_more_than_stacking_has_bug_360791(self):
# When pulling some fixed amount of content that is more than
the
# source has (because some is coming from a fallback branch, no
error
# should be received. This was reported as bug 360791.
# Need three branches: a trunk, a stacked branch, and a
preexisting
# branch pulling content from stacked and trunk. self.setup_smart_server_with_call_log()
trunk = self.make_branch_and_tree('trunk',
format="1.9-rich-root")
r1 = trunk.commit('start') stacked_branch = trunk.branch.create_clone_on_transport( self.get_transport('stacked'), stacked_on=trunk.branch.base)
local = self.make_branch('local', format='1.9-rich-root')
local.pull(stacked_branch) #boom
def test_stacked_ pull_more_ than_stacking_ has_bug_ 360791( self):
self.setup_ smart_server_ with_call_ log() branch_ and_tree( 'trunk' , "1.9-rich- root") 'start' )
stacked_ branch = trunk.branch. create_ clone_on_ transport(
self. get_transport( 'stacked' ), stacked_ on=trunk. branch. base) branch( 'local' , format= '1.9-rich- root') pull(stacked_ branch) #boom
# When pulling some fixed amount of content that is more than
the
# source has (because some is coming from a fallback branch, no
error
# should be received. This was reported as bug 360791.
# Need three branches: a trunk, a stacked branch, and a
preexisting
# branch pulling content from stacked and trunk.
trunk = self.make_
format=
r1 = trunk.commit(
local = self.make_
local.