How to checkout a repository using Mercurial (hg) in Mac OS X

19,709

You need to install Mercurial.

Share:
19,709

Related videos on Youtube

pisfire
Author by

pisfire

iOS App Developer, Android App Developer, ReactJS Developer, Flutter

Updated on September 17, 2022

Comments

  • pisfire
    pisfire almost 2 years

    I am trying to download a sample project of CorePlot from:

    http://code.google.com/p/core-plot/source/checkout
    

    There, they have mentioned below command to execute for getting a legal copy:

    hg clone https://core-plot.googlecode.com/hg/ core-plot 
    

    But My Mac OS X terminal says that there is no command called hg.

    What should I do?

    • Telemachus
      Telemachus over 14 years
      See the link on this page of that site under GUI and IDE access. That link will lead you to a page with different versions of Mercurial for various operating systems: code.google.com/p/core-plot/source/checkout
  • John T
    John T over 14 years
    Have you tried installing with sudo?
  • John T
    John T over 14 years
    Run the command sudo port install mercurial
  • John T
    John T over 14 years
    If it can't find the port command, something is wrong with your installation of Macports.
  • pisfire
    pisfire over 14 years
    I have installed fink, Mac ports & Python successfully but I am still not able to execute the command mentioned in question. (hg clone).
  • John T
    John T over 14 years
    Where is the port binary located? Type which port and if a path to it isn't displayed, you'll need to add it's location to your path.