I am looking for a simple solution for my bash script deployment.
Each run of this script should add a tag to the latest version on the production branch, but in a remote repo.
The people running the script may have their own production change commands, rather than relying on the remote repo, and my server receives the code directly from the remote repo with read-only access. This is why I need to get the latest set of changes from a remote repo, but commit the tag locally.
I tried tricks like:
hg identify -i $(hg paths default)
- This is great, but gives only tip rev, cannot define a branch
hg heads production
- This is great again, it returns the last branch of the branch, but only from the local repo ..
Hope there is something else that I am missing and there is a way to get this revision ID of the remote branch.
s3m3n source share