Tuesday, January 21, 2014

Mercurial installation

Mercurial is a Revision Control System.
Its CLI isn't installed by default.

$ pkg info -r mercurial
          Name: developer/versioning/mercurial
       Summary: The Mercurial Source Control Management System
   Description: A fast, lightweight source control ...
      Category: Development/Source Code Management
         State: Not installed
     Publisher: solaris
       Version: 2.2.1
 Build Release: 5.11
        Branch: 0.175.1.0.0.24.0
Packaging Date: September  4, 2012 05:17:40 PM
          Size: 713.77 kB
          FMRI: pkg://...

   
Solaris Studio 12.3 comes "half-way" configured for Mercurial.
This is verified by accessing the Tools | Plugins menu.


Any attempt to use the Team menu gives the following diagnostic:


To remedy both issues it's necessary to install the required IPS package.
The installation is rather simple.

# pkg install mercurial
           Packages to install:  2
       Create boot environment: No
Create backup boot environment: No

DOWNLOAD          PKGS         FILES    XFER (MB)   SPEED
Completed          2/2       531/531      2.7/2.7  813k/s

PHASE                                          ITEMS
Installing new actions                       599/599
Updating package state database                 Done
Updating image state                            Done
Creating fast lookup database                   Done
 


# hg --version
Mercurial Distributed SCM (version 2.2.1)
(see http://mercurial.selenic.com for more information)

Copyright (C) 2005-2012 Matt Mackall and others
This is free software; ... 

There is NO warranty; ...
  
As an alternative, you may try to "externally" install from the source:
https://www.mercurial-scm.org/downloads

If going to use it under Solaris Studio 12.3, then restart the IDE.
For remote use, install it on both endpoints.  

It may be worthy checking help options as a quick reference.
But Mercurial: The Definitive Guide by Bryan O'Sullivan is the book:

I've also found a few introductory videos by Brian Will quite worthwhile:
  
I would also recommend the following: