Skip to content
Snippets Groups Projects
  • Siddharth Agarwal's avatar
    4778f398
    histedit: hold wlock and lock while in progress · 4778f398
    Siddharth Agarwal authored
    Currently, histedit acquires and releases lock and wlock several times during
    its run. This isn't great because it allows other hg processes to come in and
    change state. With this fix, lock and wlock are acquired and released exactly
    once.
    
    The change to test-histedit-drop.t is a minor implementation one -- the cache
    is still correctly invalidated, but it just happens a little later and only
    gets printed out because of the unrelated --debug flag.
    4778f398
    History
    histedit: hold wlock and lock while in progress
    Siddharth Agarwal authored
    Currently, histedit acquires and releases lock and wlock several times during
    its run. This isn't great because it allows other hg processes to come in and
    change state. With this fix, lock and wlock are acquired and released exactly
    once.
    
    The change to test-histedit-drop.t is a minor implementation one -- the cache
    is still correctly invalidated, but it just happens a little later and only
    gets printed out because of the unrelated --debug flag.
histedit.py 33.24 KiB