summaryrefslogtreecommitdiff
path: root/localvcsactions
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2007-10-22 14:54:59 +0000
committerJonas Smedegaard <dr@jones.dk>2007-10-22 14:54:59 +0000
commit9c4972fe64798dd572687c83f75424c2da82c704 (patch)
treed557bfcf46b1caf0021bf3449f4b14d44e178e2f /localvcsactions
parent78755e38ac0ab20cec1665473e9b4a9b7eeb9cb4 (diff)
Add support for Bazar.
Diffstat (limited to 'localvcsactions')
-rwxr-xr-xlocalvcsactions17
1 files changed, 17 insertions, 0 deletions
diff --git a/localvcsactions b/localvcsactions
index a8923d4..40a8226 100755
--- a/localvcsactions
+++ b/localvcsactions
@@ -55,6 +55,12 @@ for project in $projects; do
repository="$(cat $project/$target/.git/description | perl -n -e '/^Unnamed/ or print "$_\n"')"
branch=""
fi
+ if [ -d "$project/$target/.bzr" ]; then
+ versys="Bazaar"
+ versysfile="bzr"
+ repository="$(cd $project/$target && bzr nick)"
+ branch=""
+ fi
if [ -z "$versys" ] || [ -z "$versysfile" ]; then
echo "ERROR: Unknown version control system used for \"$project/$target\"."
exit 1
@@ -79,6 +85,9 @@ for project in $projects; do
GIT)
( cd $project/$target && git pull )
;;
+ Bazaar)
+ ( cd $project/$target && bzr pull )
+ ;;
*)
echo "ERROR: Action \"$action\" not supported for \"$project/$target\"."
exit 1
@@ -97,6 +106,10 @@ for project in $projects; do
( cd $project/$target && git archive --format=tar --prefix="$target/" HEAD^{tree} ) \
| gzip -f9 > $project/$target-$versysfile$(date '+%Y%m%d').tar.gz
;;
+ Bazaar)
+ # FIXME: use tar_exclude to suppress other dirt than bzr itself
+ ( cd $project/$target && bzr export ../$target-$versysfile$(date '+%Y%m%d').tar.gz )
+ ;;
*)
echo "ERROR: Action \"$action\" not supported for \"$project/$target\"."
exit 1
@@ -126,6 +139,10 @@ for project in $projects; do
( cd $project/$target && test -f ../$target.ChangeLog && mv -f ../$target.ChangeLog ../$target.ChangeLog.bak )
( cd $project/$target && git log > ../$target.ChangeLog )
;;
+ Bazaar)
+ ( cd $project/$target && test -f ../$target.ChangeLog && mv -f ../$target.ChangeLog ../$target.ChangeLog.bak )
+ ( cd $project/$target && bzr log --short > ../$target.ChangeLog )
+ ;;
*)
echo "ERROR: Action \"$action\" not supported for \"$project/$target\"."
exit 1