/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/_dirstate_helpers_c.pyx

  • Committer: Jelmer Vernooij
  • Date: 2009-02-25 15:36:48 UTC
  • mfrom: (4048 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4050.
  • Revision ID: jelmer@samba.org-20090225153648-7r5mk20nr9dttqbf
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1256
1256
            path = self.pathjoin(entry[0][0], entry[0][1])
1257
1257
            # parent id is the entry for the path in the target tree
1258
1258
            # TODO: these are the same for an entire directory: cache em.
1259
 
            parent_id = self.state._get_entry(self.target_index,
1260
 
                                         path_utf8=entry[0][0])[0][2]
 
1259
            parent_entry = self.state._get_entry(self.target_index,
 
1260
                                                 path_utf8=entry[0][0])
 
1261
            if parent_entry is None:
 
1262
                raise errors.DirstateCorrupt(self.state,
 
1263
                    "We could not find the parent entry in index %d"
 
1264
                    " for the entry: %s"
 
1265
                    % (self.target_index, entry[0]))
 
1266
            parent_id = parent_entry[0][2]
1261
1267
            if parent_id == entry[0][2]:
1262
1268
                parent_id = None
1263
1269
            if path_info is not None: