Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>>>>>>
- Stuff 1
- ======
- Stuff 2
- <<<<<<<<
- Stuff 1
- Stuff 2
- hg update FEATURE_BRANCH
- hg merge default
- *mercurial gives you a ton of crap about the pbxproj file having merge conflicts*
- hg resolve -m ProjectName.xcodeproj/project.pbxproj
- *merge any other broken files*
- hg commit -m "manually merged with trunk"
- #!/bin/bash
- #
- #
- #
- if [ $# -eq 0 ]
- then
- echo "File must be provided as argument, darnit!"
- exit 1
- fi
- if [ $# -eq 2 ]
- then
- echo "only ONE File must be provided as argument, darnit!"
- exit 1
- fi
- echo "Will remove lines from file:" $1
- grep -v "<<<<<" $1 | grep -v ">>>>>>" | grep -v "====" > out.tmp;mv out.tmp $1
- echo "Done removing lines from file:" $1
Add Comment
Please, Sign In to add comment