3 ms·
Here's the bash script I use with Mercurial to deploy: hg qpop -a ; hg pull ; hg update $1 ; hg qpush -a The $1 is a branch or tag argument given to the Ba
by witten 18y ago
Here's the bash script I use with Mercurial to deploy:
hg qpop -a ;
hg pull ;
hg update $1 ;
hg qpush -a
The $1 is a branch or tag argument given to the Bash script. That way you can easily specify a particular version to update to (or rollback to!) on the command line.
The qpop and qpush will rebase any MQ patches you've made, e.g. local configuration changes, hacks, etc.
More on rebasing applied patches with Mercurial: http://hgbook.red-bean.com/hgbookch12.html#x16-28900012.8 http://hgbook.red-bean.com/hgbookch12.html#x16-28900012.8