A Simple shell script to display the overall state of a mercurial repository.
The script also handles mq patches and mq patch repositories (see mercurial patch queue documentation).
This script shows:
- files unknown to the repository
- changed files
- outgoing patches
- incoming patches
- applied mq patches
- incoming patches of the mq repository
- outgoing patches of the mq repositoty
hgstat is invoked with:
hgstat [OPTIONS]
All OPTIONS except the following ones are passed to the 'hg' command:
-h : This help.
-R DIRECTORY :
Operate on repository in DIRECTORY.
-l --local : Local mode, do not check for incoming and outgoing patches.
-b --brief : Just check if there are uncomitted/incoming/outgoing patches and
omit any details
-u --unknown: For '--brief' treat unknown files as 'uncommitted changes'.
-r REPO :
Define the full URL/PATH of a remote repository.
--rmq REPO :
Define the full URL/PATH of a remote mq repository, this implies --mq .
--mq :
Check remote mq repo, too.
--update :
Update ('hg pull -u') from remote repository if:
- there are no local changes
- there are no outgoing patches
- there are no applied mq patches
--debug :
Set tracing on.
This is script calls hgstat for all mercurial scripts that it finds in and below the current working directory.
Usage:
hgstatall [OPTIONS]
All OPTIONS given are passed to the "hgstat" command. See "hgstat" above.
Sample output (the actual output is with colors):
================================================= Repository in /home/goetz/shared/repos/vimwiki ------------------------------------------------- uncomitted (hg status): M Bookmarks.wiki M Keyboard shortcuts.wiki ? index.wiki.orig ------------------------------------------------- applied patches (hg qapplied): ------------------------------------------------- unapplied patches (hg qunapplied): ------------------------------------------------- outgoing mq repository patches (hg outgoing): comparing with ssh://goetzp@devel.home/shared/repos/vimwiki/.hg/patches searching for changes no changes found ------------------------------------------------- incoming mq repository patches (hg incoming): comparing with ssh://goetzp@devel.home/shared/repos/vimwiki/.hg/patches searching for changes no changes found ------------------------------------------------- outgoing patches (hg outgoing): comparing with ssh://goetzp@devel.home/shared/repos/vimwiki searching for changes no changes found ------------------------------------------------- incoming patches (hg incoming): comparing with ssh://goetzp@devel.home/shared/repos/vimwiki searching for changes no changes found =================================================