Skip to content

Instantly share code, notes, and snippets.

@vivekn
Last active December 24, 2015 11:19
Show Gist options
  • Save vivekn/6789920 to your computer and use it in GitHub Desktop.
Save vivekn/6789920 to your computer and use it in GitHub Desktop.
svn merge to trunk
svn sw $1
lines=`svn merge --accept postpone $2|grep -y "conflict"|wc -l`
if [ lines -eq 0 ]
then
svn ci -m "Merged Trunk"
svn sw $1
svn up
lines2=`svn merge --reintegrate $2|grep -y "conflict"|wc -l`
if [ lines2 -eq 0 ]
then
svn ci -m "$3"
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment