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

Merge up with bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
494
494
 
495
495
            Note: The caller is expected to take a read-lock before calling this.
496
496
            """
 
497
            self._must_be_locked()
497
498
            if not path:
498
499
                path = self.id2path(file_id)
499
500
            mode = os.lstat(self.abspath(path)).st_mode
1950
1951
                                                 path_utf8=old_path)
1951
1952
                    # update the source details variable to be the real
1952
1953
                    # location.
 
1954
                    if old_entry == (None, None):
 
1955
                        raise errors.CorruptDirstate(state._filename,
 
1956
                            "entry '%s/%s' is considered renamed from %r"
 
1957
                            " but source does not exist\n"
 
1958
                            "entry: %s" % (entry[0][0], entry[0][1], old_path, entry))
1953
1959
                    source_details = old_entry[1][source_index]
1954
1960
                    source_minikind = source_details[0]
1955
1961
                else: