##// END OF EJS Templates
hook: centralize passing HG_PENDING to external hook process...
hook: centralize passing HG_PENDING to external hook process This patch centralizes passing HG_PENDING to external hook process into '_exthook()'. To make in-memory changes visible to external hook process, this patch does: - write (or schedule to write) in-memory dirstate changes, and - set HG_PENDING environment variable, if: - a transaction is running, and - there are in-memory changes to be visible This patch tests some commands with some hooks, because transaction activity of a same hook differs from each other ("---": "not tested"). ======== ========= ========= ============ command preupdate precommit pretxncommit ======== ========= ========= ============ unshelve o --- --- backout x --- --- import --- o o qrefresh --- x o ======== ========= ========= ============ Each hooks are examined separately to prevent in-memory changes from being visible to external process accidentally by side effect of hooks previously invoked.

File last commit:

r26073:5ef327e9 default
r26751:520defbc default
Show More
progress.py
17 lines | 705 B | text/x-python | PythonLexer
Augie Fackler
Progress bar extension
r10434 # progress.py show progress bars for some actions
#
# Copyright (C) 2010 Augie Fackler <durin42@gmail.com>
#
Augie Fackler
progress: Use the same GPL boilerplate as most hg files
r15772 # This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
Augie Fackler
Progress bar extension
r10434
Pierre-Yves David
progress: deprecate the progress extension...
r25522 """show progress bars for some actions (DEPRECATED)
Augie Fackler
Progress bar extension
r10434
Pierre-Yves David
progress: deprecate the progress extension...
r25522 This extension has been merged into core, you can remove it from your config.
See hg help config.progress for configuration options.
Augie Fackler
Progress bar extension
r10434 """
Augie Fackler
progress: restore testedwith to the stub...
r26073 # Note for extension authors: ONLY specify testedwith = 'internal' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
testedwith = 'internal'