wierd merge bug

Andrew Bennetts andrew at canonical.com
Thu Mar 9 23:52:28 GMT 2006


Erik Bågfors wrote:
> 2006/3/9, Aaron Bentley <aaron.bentley at utoronto.ca>:
[...]
> > Without the trees, the next best thing would be dumps of the
> > TreeTransform contents.  That would be:
> >
> >         self._new_name = {}
> >         self._new_parent = {}
> >         self._new_contents = {}
> >         self._removed_contents = set()
> >         self._new_executability = {}
> >         self._new_id = {}
> >         self._non_present_ids = {}
> >         self._r_new_id = {}
> >         self._removed_id = set()
> >         self._tree_path_ids = {}
> >         self._tree_id_paths = {}
> >
> > I'd need a dump from before and after the conflict resolution.
> 
> I'm still learning python, what's the best way to dump? In perl I
> would use Data::Dumper::Dumper... what about python?

This can be a handy trick:

    from pprint import pprint
    pprint(some_object.__dict__)

-Andrew.





More information about the bazaar mailing list