projects
/
dotfiles
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57e13a1
)
Add support for bzr repositories
author
Julien Valroff
<julien@kirya.net>
Sun, 1 May 2011 06:46:36 +0000
(08:46 +0200)
committer
Julien Valroff
<julien@kirya.net>
Sun, 1 May 2011 06:46:36 +0000
(08:46 +0200)
lastcommit
patch
|
blob
|
history
diff --git
a/lastcommit
b/lastcommit
index
59fa747
..
bf7159f
100755
(executable)
--- a/
lastcommit
+++ b/
lastcommit
@@
-26,6
+26,11
@@
elif [ -d .hg ]; then
echo -n "hg"
hg log --limit 1 | grep ^changeset | awk '{print $2}' | cut -d":" -f1
+elif [ -d .bzr ]; then
+
+ echo -n "bzr"
+ bzr log -r-1 | grep ^revno: | sed 's/revno: //'
+
else
echo "Not in a VCS repository or unsupported VCS"