hook - Mercurial list files from changegroup -
i want simple command list of files differ after pushing mercurial repository on server, differences between previous push , current push. on server, have hook on changegroup event calls bash script. $hg_node revision first commit in changegroup.
my attempts:
hg status --rev $hg_node::
exclude changes made in first commit
hg status --rev $hg_node^1::
includes changes affected parent revision through others pushes.
hg log -v --rev $hg_node:: | grep ^files
include committed reverted changes, still has 'files:' , files not 1 per line
hg status --rev $hg_node:: && hg status change --rev $hg_node
does not give want, rather change between parent first commit in changegroup + change between 1 (instead of 2 changesets merged)
hg status --rev some_tag ; hg tag --remove some_tag ; hg tag --local some_tag
(have not tried, idea?) uses local tag keep track of head last push, updates each time.
also want monitor default branch, assume use --rev "revision , branch(default)" or branch option hg log.
as why, need go through changes determine parameters automated build.
hg stat -r
list removed files. list of files differ, should use hg st --rev
follows.
hg st -m --rev tip^:tip
Comments
Post a Comment