As part of my release process, I want to create a zip file that is basically a dump of the hg working dir at the time of that particular release. What's the easiest way to do this in an automated way?
BTW, if I simply "zip -r proj.zip" the zip will contain all sorts of things I don't want -- like compiled files, emacs auto-backups, and, yes, the .hg directory itself...
Use hg archive
:
hg archive -t zip /destination/path/zipfile.zip
It also takes the standard -r
option to archive a revision other than the tip.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With