Results 1 to 5 of 5

Thread: Mercurial confusion

  1. #1
    Join Date
    Apr 2008
    Location
    Finland
    Beans
    172
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question Mercurial confusion

    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

  2. #2
    Join Date
    Oct 2007
    Beans
    1,914
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Re: Mercurial confusion

    Hmmm, why don't you just try it out.
    Code:
    hg push http://the-location-of-the-other.com/repository

  3. #3
    Join Date
    Apr 2008
    Location
    Finland
    Beans
    172
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Mercurial confusion

    Quote Originally Posted by Zugzwang View Post
    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

  4. #4
    Join Date
    Oct 2007
    Beans
    1,914
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Re: Mercurial confusion

    Quote Originally Posted by denarced View Post
    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.
    Well, if you cannot write to the repository, then you also cannot push, unless a user having write access to the repository starts a HTTP server to let you push via it.

  5. #5
    Join Date
    Apr 2008
    Location
    Finland
    Beans
    172
    Distro
    Ubuntu 12.04 Precise Pangolin

    Lightbulb Re: Mercurial confusion

    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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •