Fix posting with SVN.
Review Request #6285 — Created Sept. 2, 2014 and submitted
The recent patch I accepted to reintroduce usage of
find_server_repository_info
exposed a bug. The SVN implementation of this method hadn't been updated to
cope with recent changes to the attribute behavior of API objects, and so
trying to userepository.get('mirror_path')
caused anAttributeError
. We can
blame Python's dumb slots for that.I've rewritten this part of the code to avoid the built-in get() method and
check hasattr instead.
Tried to post a change against my local devserver with an svn repository.
Before this change, I'd always get an AttributeError when trying to find the
repository. After, everything posts fine.
Description | From | Last Updated |
---|---|---|
Can't this still be written as one conditional? |
chipx86 |
- Commit:
-
2fceecf51d0c50b44c42334321465168b0b0759886b63863ce80708963c80308455146305fb528ac
- Diff:
-
Revision 2 (+3 -2)