~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/push.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-07-16 07:54:18 UTC
  • mfrom: (3537.3.5 stacking)
  • Revision ID: pqm@pqm.ubuntu.com-20080716075418-xbachkqt622m73v1
(mbp) post-merge review cleanups for stacking

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
                # if the from format is stackable, this will either work or
108
108
                # trigger NotStacked. If it's not, an error will be given to
109
109
                # the user.
110
 
                br_from.get_stacked_on()
 
110
                br_from.get_stacked_on_url()
111
111
            except errors.NotStacked:
112
112
                pass
113
113
            # now we need to sprout the repository,
114
114
            dir_to = br_from.bzrdir._format.initialize_on_transport(to_transport)
115
115
            br_from.repository._format.initialize(dir_to)
116
116
            br_to = br_from._format.initialize(dir_to)
117
 
            br_to.set_stacked_on(reference)
 
117
            br_to.set_stacked_on_url(reference)
118
118
            # and copy the data up.
119
119
            br_from.push(br_to)
120
120
        else: