I am looking to make some kind of alias for hg push
so it will auto do a hg pull
, hg merge
, hg commit
and hg push
by itself.
Obviously if anything goes wrong, like conflicts on merge, it will stop.
So far I wrote this but it doesn't work when you do not have anything to pull:
hg pull -u && hg merge && hg ci -m "merge" && hg push
When you do not have anything to merge it will fail with:
abort: there is nothing to merge