Comment 2 for bug 229410

Revision history for this message
Wesley J. Landaker (wjl) wrote : Re: "AssertionError: '...' is not a valid path" in lightweight bzr-svn checkout

Just trying to debug this, I added some print statements before the assert where it is failing, e.g.:

print "mapping.is_branch(bp) =", mapping.is_branch(bp)
print "mapping.is_tag(bp) =", mapping.is_tag(bp)
print "mapping =", mapping
print "bp =", bp
assert mapping is None or mapping.is_branch(bp) or mapping.is_tag(bp), "%r is not a valid path" % bp

When I run "bzr info" and see it crash, what I get is tons of lines of output, the last one is interesting:

mapping.is_branch(bp) = True
mapping.is_tag(bp) = False
mapping = BzrSvnMappingv3FileProps(SingleBranchingScheme('fpga/combo_fpga/src'))
bp = fpga/combo_fpga/src
mapping.is_branch(bp) = True
mapping.is_tag(bp) = False
mapping = BzrSvnMappingv3FileProps(SingleBranchingScheme('fpga/combo_fpga/src'))
bp = fpga/combo_fpga/src
mapping.is_branch(bp) = True
mapping.is_tag(bp) = False
mapping = BzrSvnMappingv3FileProps(SingleBranchingScheme('fpga/combo_fpga/src'))
bp = fpga/combo_fpga/src
mapping.is_branch(bp) = True
mapping.is_tag(bp) = False
mapping = BzrSvnMappingv3FileProps(SingleBranchingScheme('fpga/combo_fpga/src'))
bp = fpga/combo_fpga/src
mapping.is_branch(bp) = True
mapping.is_tag(bp) = False
mapping = BzrSvnMappingv3FileProps(SingleBranchingScheme('fpga/combo_fpga/src'))
bp = fpga/combo_fpga/src
mapping.is_branch(bp) = False
mapping.is_tag(bp) = False
mapping = BzrSvnMappingv3FileProps(SingleBranchingScheme('fpga/combo_fpga/src'))
bp = combo_fpga/src
bzr: ERROR: exceptions.AssertionError: 'combo_fpga/src' is not a valid path

Notice that the branch path is "fpga/combo_fpga/src" (correct) every time, except the last time it's just "combo_fpga/src" which is not a correct path in the repository. I have no idea where this is coming from.

If the reason for this error isn't obvious to you, please let me know what I can do to help debug it more.