Mercurial: Difference between revisions

From Andreida
(Created page with "= Misc = == hg == === aliases === ==== mercurial command line log as one line per commit ==== Windows: open C:\Users\<User>\mercurial.ini add: [alias] logline = log --tem...")
 
Line 2: Line 2:


== hg ==
== hg ==

=== config file ===
* Windows: C:\Users\<User>\mercurial.ini
* Linux: ~/.hgrc

=== Username/Mail ===

If you are using the commandline, make sure to add to your config file:
[ui]
username = John Doe <john@example.com>


=== aliases ===
=== aliases ===


==== mercurial command line log as one line per commit ====
==== mercurial command line log as one line per commit ====
Windows:
Windows: open C:\Users\<User>\mercurial.ini
add:
add:
[alias]
[alias]
logline = log --template "{node|short} | {date|isodatesec} | {author|user}: {desc|strip|firstline}\n"
logline = log --template "{node|short} | {date|isodatesec} | {author|user}: {desc|strip|firstline}\n"


Linux: open ~/.hgrc
Linux:
add: (the only difference to Windows is " vs '
add: (the only difference to Windows is " vs '
[alias]
[alias]
logline = log --template '{node|short} | {date|isodatesec} | {author|user}: {desc|strip|firstline}\n'
logline = log --template '{node|short} | {date|isodatesec} | {author|user}: {desc|strip|firstline}\n'




== TortoiseHG ==
== TortoiseHG ==

Revision as of 16:23, 15 August 2020

Misc

hg

config file

  • Windows: C:\Users\<User>\mercurial.ini
  • Linux: ~/.hgrc

Username/Mail

If you are using the commandline, make sure to add to your config file:

[ui]
username = John Doe <john@example.com>

aliases

mercurial command line log as one line per commit

Windows: add:

[alias]
logline = log --template "{node|short} | {date|isodatesec} | {author|user}: {desc|strip|firstline}\n"

Linux: add: (the only difference to Windows is " vs '

[alias]
logline = log --template '{node|short} | {date|isodatesec} | {author|user}: {desc|strip|firstline}\n'

TortoiseHG

Why does hg not work?

After you installed TortoiseHG, add the path to the install directory of TortoiseHG to the PATH variable. (Start/Settings/System/About/System Info/Advanced system settings/Environment Variables...)