* bzrlib/inventory.py: (Inventory.__repr__): Limit debug output to 2048 characters or big inventories produce too much noise.
* bzrlib/builtins.py: (cmd_cat._run): The file id in the basis tree may not exist in the requested revision. Catch the exception and try with the file id in the revision tree.