#!/bin/bash
REPO=https://svn.apache.org/repos/asf/activemq/trunk/
if [ -z "$1" ]; then 
	echo usage: $0 revision
    echo This command will backport a SVN patch from the repo $REPO
    echo to the branch in the current working directory. 
    exit
fi          
VERSION=$1
PREVIOUS=$[$VERSION-1]

echo "Merging patch range $PREVIOUS:$VERSION to repo $REPO"

svn merge -r $PREVIOUS:$VERSION $REPO
          
          