Hgrc

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "==~/.hgrc== <source lang="ini"> [ui] username=Attie Grande <attie@attie.co.uk> verbose=True [extensions] hgext.convert= </source>")
 
m (~/.hgrc)
 
(6 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
 +
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]
 
[extensions]
hgext.convert=
+
hgext.convert =  
 +
pager =
 +
color =
 +
mq =
 +
record =
 +
shelve =
 +
graphlog =
 +
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
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox