it:ad:mercurial:installation

IT:AD:Mercurial:Installation

There are some configurations settings that make things easier by getting it out of the way first.

Tip: Configuration is generally in one of two places: * Across all repositories, in %USERPROFILE%\mercurial.ini * Per Repository in a file called {YourRepo}\.hg\hgrc

  • Proxy:
    • If you are behind a proxy, it's best to define it once, for all repositories on your station to use:
      * `Notepad++ > %USERPROFILE%\Mercurial.ini`:

    ### Mercurial.ini: Sync Settings ### Add something like the following to the ini file:

    [http_proxy] host = d01nzwgpx1:80 user = CORP\Sky
    passwd = XXXXXX

    [tortoisehg] cipushafter = default-push postpull = update closeci = True engmsg = True

    [ui] username = skysigal merge = diffmerge

    [hooks] commit.autopush = hg push

Note that the [hooks] part came from here: http://mercurial.aragost.com/kick-start/en/tasks/

  • You do NOT want to chuck into SourceControl your bins and other big useless stuff.
  • You need an 'exclude list'
  • It's best if it is defined in one place, with each repo pointing back to it.
  • Notepad++ Create the following file %USERPROFILE%.hgignore`:

Add the following:

# use glob syntax.
glob:*.exe
glob:*.pdb
glob:*.dll
glob:[Oo]bj/*
glob:[Bb]in/*
glob:_ReSharper.*
glob:*.suo
glob:_CompiledAssemblies/*
glob:_Resharper*
glob:*.cache
glob:*.user
glob:packages/*/*
  • /home/skysigal/public_html/data/pages/it/ad/mercurial/installation.txt
  • Last modified: 2023/11/04 22:29
  • by 127.0.0.1