Question

I set up my "mercurial_server" as follows (except I used hgwebdir.cgi instead of hgweb.cgi) and I created a repo

hg init

then I create a local repo work on my code and then push my updates to the server (tortoisehg), they show up on the web, but not in the actual directory? Is this supposed to happen I cant find a write up on the database

Was it helpful?

Solution

This is normal. The repository (.hg directory) contains the change history you pushed. The working copy is still empty.

To update your working copy to a version from the repository, you need to run the "hg update" command on your server (use the "-C tip" argument to show the latest). This will make the files appear in the directory next to your .hg directory.

In most cases, you do not need to do that on your server unless you are implementing a continuous integration/deployment process.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top