Introduce HG_PREPEND to solve pretxn races
- add writepending to flush delayed writes to separate file - add support in hooks for lazy evaluation of callable parameters - add HG_PENDING to pretxn hooks - call writepending if hook is used - pass repo root to hook environment - if HG_PENDING = repo root, we're in pretxn hook - read pending data to make pending changesets visible - filter HG_PENDING in tests/printenv.py
Showing
- mercurial/changelog.py 26 additions, 1 deletionmercurial/changelog.py
- mercurial/hook.py 7 additions, 1 deletionmercurial/hook.py
- mercurial/localrepo.py 13 additions, 5 deletionsmercurial/localrepo.py
- tests/printenv.py 3 additions, 0 deletionstests/printenv.py
- tests/test-hook.out 8 additions, 8 deletionstests/test-hook.out
Loading
Please register or sign in to comment