projects
/
sugar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72ccefb
)
Auto commit by The Sugar System.
author
PHO
<pho@cielonegro.org>
Mon, 19 Apr 2010 03:01:00 +0000
(12:01 +0900)
committer
PHO
<pho@cielonegro.org>
Mon, 19 Apr 2010 03:01:00 +0000
(12:01 +0900)
dot-files/_hgrc
patch
|
blob
|
history
dot-files/_zshrc
patch
|
blob
|
history
diff --git
a/dot-files/_hgrc
b/dot-files/_hgrc
index b45ff801e3809909041dcdeb7cd12b5b7f2b9df7..e77aec1e726b8778d76bb243b2956244d835ea48 100644
(file)
--- a/
dot-files/_hgrc
+++ b/
dot-files/_hgrc
@@
-13,3
+13,8
@@
hgext.fetch =
hgext.graphlog =
#pager=
color=
+
+[hooks]
+commit = touch `hg root`/.hg/unpushed
+post-push = rm -f `hg root`/.hg/unpushed
+post-rollback = rm -f `hg root`/.hg/unpushed
diff --git
a/dot-files/_zshrc
b/dot-files/_zshrc
index 710f2590c1fcf04ef13e734d4e8df127cfdc3242..487f03e3545dff02409ad18552810159d951e494 100644
(file)
--- a/
dot-files/_zshrc
+++ b/
dot-files/_zshrc
@@
-95,7
+95,12
@@
function print_directory_info() {
elif [[ -r $absdir/.hg/branch ]] then
# Hg
- cat $absdir/.hg/branch
+ local hgbranch=`cat $absdir/.hg/branch`
+ if [[ -e $absdir/.hg/unpushed ]] then
+ echo "*${hgbranch}*"
+ else
+ echo "$hgbranch"
+ fi
elif [[ -d $absdir/_darcs ]] then
# Darcs