~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Aaron Bentley
  • Date: 2009-04-14 15:02:46 UTC
  • mto: This revision was merged to the branch mainline in revision 4302.
  • Revision ID: aaron@aaronbentley.com-20090414150246-6xfd3bwwf2m8v4px
Cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
1065
1065
        if not getattr(self._format, 'supports_reference_locations', False):
1066
1066
            return
1067
1067
        reference_dict = self._get_info_dict()
 
1068
        if len(reference_dict) == 0:
 
1069
            return
1068
1070
        old_base = self.base
1069
1071
        new_base = target.base
1070
1072
        target_reference_dict = target._get_info_dict()
1074
1076
                                                  old_base, new_base)
1075
1077
            target_reference_dict.setdefault(
1076
1078
                file_id, (tree_path, branch_location))
1077
 
        try:
1078
 
            target._save_reference_dict(target_reference_dict)
1079
 
        except UnsupportedOperation:
1080
 
            pass
 
1079
        target._save_reference_dict(target_reference_dict)
1081
1080
 
1082
1081
    @needs_read_lock
1083
1082
    def check(self):