~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-04-13 23:16:57 UTC
  • mfrom: (1662.1.1 bzr.mbp.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060413231657-bce3d67d3e7a4f2b
(mbp/olaf) push/pull/merge --remember improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
1150
1150
        # FIXUP this and get_parent in a future branch format bump:
1151
1151
        # read and rewrite the file, and have the new format code read
1152
1152
        # using .get not .get_utf8. RBC 20060125
1153
 
        self.control_files.put_utf8('parent', url + '\n')
 
1153
        if url is None:
 
1154
            self.control_files._transport.delete('parent')
 
1155
        else:
 
1156
            self.control_files.put_utf8('parent', url + '\n')
1154
1157
 
1155
1158
    def tree_config(self):
1156
1159
        return TreeConfig(self)