Hello,
I have a repository on my machine and it has about 70 commits and a couple of branches. Now there's another "central" repo which is empty. Is it possible for me to push my commits to the central instead of the central cloning my repo?
Hello,
I have a repository on my machine and it has about 70 commits and a couple of branches. Now there's another "central" repo which is empty. Is it possible for me to push my commits to the central instead of the central cloning my repo?
___________ . . ___________
"An expert is a person who has made all the mistakes that can be made in a very narrow field" -Nils Bohr
Hmmm, why don't you just try it out.
Code:hg push http://the-location-of-the-other.com/repository
I did and I got:
pushing to ssh://user@192.168.11.4//var/lib/mercurial/myapp
searching for changes
remote: abort: could not lock repository /var/lib/mercurial/myapp: Permission denied
abort: unexpected response: empty string
This error could have something to do with rights; my user group does not have write privileges to the .hg-directory.
I'll let you all know if that indeed is the reason.
___________ . . ___________
"An expert is a person who has made all the mistakes that can be made in a very narrow field" -Nils Bohr
Yep!
The missing write privileges was the problem.
___________ . . ___________
"An expert is a person who has made all the mistakes that can be made in a very narrow field" -Nils Bohr
Bookmarks