You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Mark Garboden <em...@gmail.com> on 2007/02/13 02:58:26 UTC
Bug in detect-merge-conflicts.sh
The regular expression in detect-merge-conflicts.sh misses a few cases.
I believe the following regex is complete. Or at least, more complete.
'^\+(<{7}|={7}|>{7})(\ \.mine|\ \.r[0-9]+)?$'
I grabbed an example of a conflict from the svn book and added a few cases.
grep -E '^(<{7}|={7}|>{7})(\ \.mine|\ \.r[0-9]+)?$' << EOF
Top piece of bread
Mayonnaise
Lettuce
Tomato
Provolone
<<<<<<< .mine
Salami
Mortadella
Prosciutto
=======
Sauerkraut
Grilled Chicken
>>>>>>> .r2
Creole Mustard
The three lines above here should be caught
No lines below here should be caught!!!!!!!!!!!!!!!!
==================
=======<
=======z
>>>>>>><
>>>>>>> .really cool
>>>>>>> .r2d2
<<<<<<< .mine mine mine
Bottom piece of bread
EOF
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org