2

I've got a Mercurial repository that contains a subdirectory for design files and a sub directory for code files.

What's the best way for me to deploy the code subdirectories on my server, keeping it secure, without deploying the design files?

rob_mccann
  • 1,237
  • 2
  • 11
  • 16

2 Answers2

2

Ideally you should have these in separate repos as Kyle pointed out, optionally, using sub repositories.

However, with your setup as is something like this might be all you need:

hg archive -X designDocs /path/to/deploymentDir

or if you need to transfer it first:

hg archive -X designDocs --type zip /path/to/newDeploymentArchive.zip
Ry4an Brase
  • 78,112
  • 7
  • 148
  • 169
0

You might try using subrepositories for the two subdirectories.

Kyle Heironimus
  • 7,741
  • 7
  • 39
  • 51