modified error handling methods
[feisty_meow.git] / scripts / rev_control / resolve_svn.sh
1 #!/bin/bash
2
3 # resolves a tree conflict by accepting the "working" version,
4 # which effectively makes your current change the accepted one.
5
6 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
7 source "$FEISTY_MEOW_SCRIPTS/rev_control/version_control.sh"
8
9 ##############
10
11 filename="$1"; shift
12
13 if [ -z "$filename" ]; then
14   echo "This script needs a filename to operate on."
15   exit 1
16 fi
17
18 svn resolve --accept=working "$filename"
19 exit_on_error "resolving tree conflict by accepting the working directory as the right one"
20
21