scmutil: update cached copy when filecached attribute is assigned (issue3263)
When assigning a new object to filecached properties, the cached object that was kept in the _filecache map was still holding the old object. By implementing __set__, we track these changes too and update the cached copy as well.
Showing
- mercurial/scmutil.py 16 additions, 1 deletionmercurial/scmutil.py
- mercurial/statichttprepo.py 1 addition, 1 deletionmercurial/statichttprepo.py
- tests/test-commandserver.py 7 additions, 0 deletionstests/test-commandserver.py
- tests/test-commandserver.py.out 8 additions, 2 deletionstests/test-commandserver.py.out
Loading
Please register or sign in to comment