Reputation: 2962
I want to understand how mercurial works on the server side. So I do some local experiment and can't understand what is going wrong.
I make two directories /server
and /client
then go to /server
, make new directory /server/repository
, go to /repository
and call hg init
.By this I have an hg repository.
Then I go to /client
and call hg clone file://path_to_server/server/repository
. It clones empty repository to the /client
folder. Then I create new file and put it under hg control doing hg add file
, commit it and push. I expect a file
in the /server/repository/
but it's still empty.Maybe my expectations so naive and behaviour I expect is incorect. It also might be really doubtful thing - moving files locally by pushing from /client
to /server
without any command in /server/repo/
folder. In this case I hope anybody explain why that doesn't word this way and what should I do.
Upvotes: 1
Views: 387
Reputation: 3276
You need to hg update
on the server repository.
The working directory (which is the set of files you see in the filesystem) is not automatically updated when new changesets arrive either from pulling or pushing changes from another repo.
Good Luck!
Upvotes: 1