1

I would like to merge in a branch 2 a quite long list of revisions from branch 1. This list is contained in a text file, like, say :

1
3
78
… //a long list of revisions here...
324

Is there an elegant solution, better than doing in my branch2 working copy :

svn merge -c1 -c3 -c78 … -c324 branch1

?

I know that I shouldn't get to this point, but life is life !

EDIT : the format of the text file can easily change

1 Answer 1

1

I figured a solution with bash :

commande="svn merge http://svn.sfrdev.fr/sfr/applications/bol-entreprise/trunk/"; for line in $(cat ~/listOfRevs); do commande="$commande -c $line"; done;echo $commande;eval $commande

listOfRevs is a file containing all the revision numbers, one per line :

r2
r5
…
rN
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.