diff options
Diffstat (limited to 'localvcsactions')
-rwxr-xr-x | localvcsactions | 17 |
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 |