comparison mercurial/mdiff.py @ 24651:67241ee427cf

dirs._addpath: reinstate use of Py_CLEAR I changed this to an explicit Py_DECREF + set to null in 6f0e6fa9fdd7. This was a silly misunderstanding on my part -- for some reason I thought Py_CLEAR set its argument to null only if its refcount reached 0. Turns out that's not actually the case -- Py_CLEAR is just Py_DECREF + set to null with some additional precautions around destructors that aren't relevant here. The real bug that 6f0e6fa9fdd7 fixed was the fact that we were mutating the string after setting it in the Python dictionary.
author Siddharth Agarwal <sid0@fb.com>
date Tue, 07 Apr 2015 20:43:04 -0700
parents a5a06c9c7407
children 56b2bcea2529
comparison
equal deleted inserted replaced
24650:b83a8f512a80 24651:67241ee427cf