Hgrc

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m
m (~/.hgrc)
 
Line 6: Line 6:
 
verbose = True
 
verbose = True
 
merge = internal:merge
 
merge = internal:merge
 +
ignore = ~/.hgignore
  
 
[defaults]
 
[defaults]
log = -f
 
 
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 -cR
+
pager = less -FRSX
  
 
[diff]
 
[diff]
showfunc = true
+
showfunc = true
  
 
[color]
 
[color]
Line 35: Line 42:
 
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]
Line 45: Line 59:
 
graphlog =  
 
graphlog =  
 
mercurial_keyring =  
 
mercurial_keyring =  
 +
histedit =
 +
rebase =
  
 
[trusted]
 
[trusted]
 
users = alice, carl, dan
 
users = alice, carl, dan
 
</source>
 
</source>

Latest revision as of 14: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