Guest User

Untitled

a guest
Apr 25th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. >>>>>>>
  2. Stuff 1
  3. ======
  4. Stuff 2
  5. <<<<<<<<
  6.  
  7. Stuff 1
  8. Stuff 2
  9.  
  10. hg update FEATURE_BRANCH
  11. hg merge default
  12. *mercurial gives you a ton of crap about the pbxproj file having merge conflicts*
  13.  
  14. hg resolve -m ProjectName.xcodeproj/project.pbxproj
  15. *merge any other broken files*
  16. hg commit -m "manually merged with trunk"
  17.  
  18. #!/bin/bash
  19. #
  20. #
  21. #
  22. if [ $# -eq 0 ]
  23. then
  24. echo "File must be provided as argument, darnit!"
  25. exit 1
  26. fi
  27.  
  28. if [ $# -eq 2 ]
  29. then
  30. echo "only ONE File must be provided as argument, darnit!"
  31. exit 1
  32. fi
  33.  
  34.  
  35. echo "Will remove lines from file:" $1
  36. grep -v "<<<<<" $1 | grep -v ">>>>>>" | grep -v "====" > out.tmp;mv out.tmp $1
  37. echo "Done removing lines from file:" $1
Add Comment
Please, Sign In to add comment