Permalink
Browse files

More hgrc changes

- Split hg lg to lg and lga to make it mimic my git config better
- Add hg today to figure out what I committed today
- Added hostfingerprints so I stop seeing complainy messages when I push
  • Loading branch information...
1 parent b7285a0 commit 422894a4876fac0e470b001d573895a9df3b870a @jlfwong committed May 22, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 .hgrc
View
9 .hgrc
@@ -1,6 +1,6 @@
[pager]
pager = LESS='FSRX' less
-attend = annotate, cat, diff, export, glog, log, qdiff, slog, dlog, gslog, sglog, df, nlog, outgoing, lg, show
+attend = annotate, cat, diff, export, glog, log, qdiff, slog, dlog, gslog, sglog, df, nlog, outgoing, lg, show, lga
# note: this can be temporarily disabled with --pager=off
[ui]
@@ -26,7 +26,6 @@ hgext.purge =
hgext.shelve = ~/.hgext/hgshelve.py
hgext.collapse = ~/.hgext/collapse.py
hgext.crecord = ~/.hgext/crecord/
-dummy = $HOME/code/khan/devtools/kiln-review/review.py
rdiff = $HOME/code/khan/devtools/mercurial-extensions-rdiff/rdiff.py
kilnauth = $HOME/code/khan/devtools/kilnauth.py
prompt = $HOME/dotfiles/hg-prompt/prompt.py
@@ -40,13 +39,15 @@ slog = log --style=$HOME/dotfiles/mercurial-cli-templates/map-cmdline.slog
nlog = log --style=$HOME/dotfiles/mercurial-cli-templates/map-cmdline.nlog
sglog = glog --style=$HOME/dotfiles/mercurial-cli-templates/map-cmdline.sglog
gslog = sglog
-lg = glog --style=$HOME/dotfiles/mercurial-cli-templates/map-cmdline.lg
+lga = glog --style=$HOME/dotfiles/mercurial-cli-templates/map-cmdline.lg
+lg = lga --rev 'ancestors(.)'
dlog = log --style=$HOME/dotfiles/mercurial-cli-templates/map-cmdline.dlog
st = st -S
df = diff
nudge = push --rev .
wip = !hg shelve -n $(hg id -B .)-wip
unwip = !hg unshelve -n $(hg id -B .)-wip
+today = !hg log --template '{rev} {desc|firstline|strip}\n' -r "sort(user('$(hg showconfig ui.username | sed 's/.*<\(.*\)>/\1/')') and date(-1), -date)"
@divad12
divad12 added a line comment Jun 2, 2012

This is cool, could you make this also show diffstats for each individual commit or a combined diffstat?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
[diff]
git = True
@@ -66,6 +67,8 @@ pretxncommit.khanlint = $HOME/code/khan/devtools/khan-linter/khanlint.py
[hostfingerprints]
khanacademy.kilnhg.com = fe:ab:65:89:7c:6f:1a:21:a8:39:54:6c:2a:cb:ca:ae:e9:e5:f0:01
+bitbucket.org = 24:9c:45:8b:9c:aa:ba:55:4e:01:6d:58:ff:e4:28:7d:2a:14:ae:3b
+code.google.com = 97:1a:9f:06:54:23:96:b8:fa:3f:d8:78:c1:bf:84:34:4b:5e:cb:30
@divad12
divad12 added a line comment Jun 2, 2012

You'll probably end up removing the fingerprint for code.google.com, they change it very frequently and it will just cause your push to fail.

@jlfwong
Owner
jlfwong added a line comment Jun 2, 2012

Yeah, I have this removed locally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
[bookmarks]
track.current = True

0 comments on commit 422894a

Please sign in to comment.