#!/bin/bash

export SCRIPT=$(basename $0)
usage()
{
	echo "Usage: $SCRIPT [-q] <ticket>*"
	exit 1
}
export -f usage

. ${0%/*}/include/url.inc

if [ -z "$source_version" ]
then
	echo "Error: Could not determine branch version -- do you call this script from a SVN repository checkout?" >&2
	exit 2
fi

opt=
while true
do
	case $1 in
	-*) opt+=" $1";;
	*)  break;;
	esac
	shift
done

${0%/*}/unmerge-changesets $opt branches/$source_version/testing/src FFL "" "$@"