AIX ERROR: exceptions.UnboundLocalError: local variable 'changed' referenced be fore assignment

Bug #868284 reported by Adi Roiban
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Incomplete
Medium
Unassigned

Bug Description

I just branched and pulled some changes on a branch on AIX, and bzr stopped working, always raising the attached error.

I am using the bzr version with out of memory fix from this bug: https://bugs.launchpad.net/bzr/+bug/856731

Cheers,
Adi

Tags: dirstate aix
Revision history for this message
Adi Roiban (adiroiban) wrote :
Revision history for this message
John A Meinel (jameinel) wrote :

That would indicate that this loop is never entered:
while (current_entry is not None or current_path_info is not None):

so both "current_entry" is None and "current_path_info" is None, which might be bogus.

Specifically, this loop is about iterating in sorted order, the list of objects on disk, comparing it to the list of objects in our saved state.

Going up a level, the calling code has:
while (self.current_dir_info is not None
    or self.current_block is not None):

It sounds like both of them are not None, but also are not empty.

Would it be possible to get an "ls -R" and the contents of .bzr/checkout/dirstate?

My initial guess is that 'readdir()' returns something different on AIX than what we are expecting. (Like not returning anything for an empty directory, and we expect it to return at least '.', etc.)

Changed in bzr:
importance: Undecided → Medium
status: New → Incomplete
tags: added: aix dirstate
Revision history for this message
Martin Packman (gz) wrote :

This looks like the previously reported cython incompatibility that's fixed on 2.5 rather than anything more sinister.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.