~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-10-27 16:14:18 UTC
  • mfrom: (2091.3.7 symlink-paths)
  • Revision ID: pqm@pqm.ubuntu.com-20061027161418-ed489293a9231843
Fix bzr mv across symlinks

Show diffs side-by-side

added added

removed removed

Lines of Context:
1204
1204
            return None
1205
1205
        for f in name:
1206
1206
            try:
1207
 
                cie = parent.children[f]
 
1207
                children = getattr(parent, 'children', None)
 
1208
                if children is None:
 
1209
                    return None
 
1210
                cie = children[f]
1208
1211
                assert cie.name == f
1209
1212
                assert cie.parent_id == parent.file_id
1210
1213
                parent = cie