Hgrc
From Attie's Wiki
(Difference between revisions)
m |
m (→~/.hgrc) |
||
(3 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
==~/.hgrc== | ==~/.hgrc== | ||
+ | |||
<source lang="ini"> | <source lang="ini"> | ||
[ui] | [ui] | ||
− | username=Attie Grande <attie@attie.co.uk> | + | username = Attie Grande <attie@attie.co.uk> |
− | verbose=True | + | verbose = True |
− | merge=internal:merge | + | merge = internal:merge |
+ | ignore = ~/.hgignore | ||
[defaults] | [defaults] | ||
− | + | revert = --no-backup | |
− | revert=--no-backup | + | |
+ | [alias] | ||
+ | br = branches | ||
+ | lg = log -G --pager always | ||
+ | rev = parent --template '{node} {branch}\n' | ||
+ | ph = phase -r tip | ||
+ | drafts = log -r 'draft()' | ||
[pager] | [pager] | ||
− | pager=less - | + | pager = less -FRSX |
[diff] | [diff] | ||
Line 18: | Line 26: | ||
[color] | [color] | ||
# configure colors for each possible hg status | # configure colors for each possible hg status | ||
− | status.modified=blue bold | + | status.modified = blue bold |
− | status.added=green bold | + | status.added = green bold |
− | status.removed=red bold | + | status.removed = red bold |
− | status.deleted=cyan bold | + | status.deleted = cyan bold |
− | status.unknown=magenta bold | + | status.unknown = magenta bold |
− | status.ignored=white bold | + | status.ignored = white bold |
# and for hg diff output also | # and for hg diff output also | ||
− | diff.diffline=bold | + | diff.diffline = bold |
− | diff.extended=cyan bold | + | diff.extended = cyan bold |
− | diff.file_a=white bold | + | diff.file_a = white bold |
− | diff.file_b=white bold | + | diff.file_b = white bold |
− | diff.hunk=cyan | + | diff.hunk = cyan |
− | diff.deleted=red | + | diff.deleted = red |
− | diff.inserted=green | + | diff.inserted = green |
− | diff.changed=white | + | diff.changed = white |
− | diff.trailingwhitespace=bold red_background | + | diff.trailingwhitespace = bold red_background |
+ | |||
+ | [auth] | ||
+ | # this is a bad idea... | ||
+ | service1.schemes = http https | ||
+ | service1.prefix = service.domain.com/ | ||
+ | service1.username = attie | ||
+ | service1.password = password | ||
[extensions] | [extensions] | ||
− | hgext.convert= | + | hgext.convert = |
− | pager= | + | pager = |
− | color= | + | color = |
− | mq= | + | mq = |
− | record= | + | record = |
− | shelve= | + | shelve = |
− | graphlog= | + | graphlog = |
− | mercurial_keyring= | + | mercurial_keyring = |
+ | histedit = | ||
+ | rebase = | ||
+ | |||
+ | [trusted] | ||
+ | users = alice, carl, dan | ||
</source> | </source> |
Latest revision as of 15:54, 4 January 2017
[edit] ~/.hgrc
[ui] username = Attie Grande <attie@attie.co.uk> verbose = True merge = internal:merge ignore = ~/.hgignore [defaults] revert = --no-backup [alias] br = branches lg = log -G --pager always rev = parent --template '{node} {branch}\n' ph = phase -r tip drafts = log -r 'draft()' [pager] pager = less -FRSX [diff] showfunc = true [color] # configure colors for each possible hg status status.modified = blue bold status.added = green bold status.removed = red bold status.deleted = cyan bold status.unknown = magenta bold status.ignored = white bold # and for hg diff output also diff.diffline = bold diff.extended = cyan bold diff.file_a = white bold diff.file_b = white bold diff.hunk = cyan diff.deleted = red diff.inserted = green diff.changed = white diff.trailingwhitespace = bold red_background [auth] # this is a bad idea... service1.schemes = http https service1.prefix = service.domain.com/ service1.username = attie service1.password = password [extensions] hgext.convert = pager = color = mq = record = shelve = graphlog = mercurial_keyring = histedit = rebase = [trusted] users = alice, carl, dan