We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68dea66 commit 6c62b0cCopy full SHA for 6c62b0c
bin/hg-functions
@@ -0,0 +1,17 @@
1
+# You always want to do rebase pulls.
2
+alias pull='hg pull --rebase'
3
+
4
+# You always want to pull before pushing, to avoid spurious collisions.
5
+alias push='pull && hg push'
6
7
+# Commits, and prepends the current directory name to the commit message.
8
+# Just pass it the commit message as an argument.
9
+function save {
10
+ hg commit -m "[${PWD##*/}] ${1}"
11
+}
12
13
+# Regens, commits, and pulls/pushes, all in one package.
14
+# Pass it the commit message as an argument.
15
+function rcommit {
16
+ regenerate && save "${1}" . && push
17
0 commit comments