HI,
Is there a way to export current hg repository head in a tar ball?
I don’t need all the hg meta files in the tar ball (e.g history/diff).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
hg archive -t tgz <targetpath>to export a clean version as a gzip’d tarball.Alternatively, you can use a different
-tflag value to specify a different output type. You can find all of the type (and other) options on thehgman page.In Mercurial 1.6+, you don’t even need to specify the type with
-t– you can just usehg archive <targetpath>and Mercurial will infer the proper type from the filename.