Skip to content
Snippets Groups Projects
  • Durham Goode's avatar
    9f272bf3b342
    hooks: always include HG_PENDING · 9f272bf3b342
    Durham Goode authored
    Previously we would only include HG_PENDING in the hook args if the
    transaction's writepending() actually wrote something. This is a bad criteria,
    since it's possible that a previous call to writepending() wrote stuff and the
    hooks want to still see that.
    
    The solution is to always have hooks execute within the scope of the pending
    changes by always putting HG_PENDING in the environment.
    9f272bf3b342
    History
    hooks: always include HG_PENDING
    Durham Goode authored
    Previously we would only include HG_PENDING in the hook args if the
    transaction's writepending() actually wrote something. This is a bad criteria,
    since it's possible that a previous call to writepending() wrote stuff and the
    hooks want to still see that.
    
    The solution is to always have hooks execute within the scope of the pending
    changes by always putting HG_PENDING in the environment.