Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.37 KB | None | 0 0
  1. Index: subversion/svn/conflict-callbacks.c
  2. ===================================================================
  3. --- subversion/svn/conflict-callbacks.c (revision 1033269)
  4. +++ subversion/svn/conflict-callbacks.c (working copy)
  5. @@ -61,7 +61,8 @@ svn_cl__accept_from_word(const char *word)
  6. {
  7. /* Shorthand options are consistent with svn_cl__conflict_handler(). */
  8. if (strcmp(word, SVN_CL__ACCEPT_POSTPONE) == 0
  9. - || strcmp(word, "p") == 0)
  10. + || strcmp(word, "p") == 0
  11. + || strcmp(word, ":-P") == 0)
  12. return svn_cl__accept_postpone;
  13. if (strcmp(word, SVN_CL__ACCEPT_BASE) == 0)
  14. /* ### shorthand? */
  15. @@ -70,22 +71,28 @@ svn_cl__accept_from_word(const char *word)
  16. /* ### shorthand? */
  17. return svn_cl__accept_working;
  18. if (strcmp(word, SVN_CL__ACCEPT_MINE_CONFLICT) == 0
  19. - || strcmp(word, "mc") == 0)
  20. + || strcmp(word, "mc") == 0
  21. + || strcmp(word, "X-)") == 0)
  22. return svn_cl__accept_mine_conflict;
  23. if (strcmp(word, SVN_CL__ACCEPT_THEIRS_CONFLICT) == 0
  24. - || strcmp(word, "tc") == 0)
  25. + || strcmp(word, "tc") == 0
  26. + || strcmp(word, "X-(") == 0)
  27. return svn_cl__accept_theirs_conflict;
  28. if (strcmp(word, SVN_CL__ACCEPT_MINE_FULL) == 0
  29. - || strcmp(word, "mf") == 0)
  30. + || strcmp(word, "mf") == 0
  31. + || strcmp(word, ":-)") == 0)
  32. return svn_cl__accept_mine_full;
  33. if (strcmp(word, SVN_CL__ACCEPT_THEIRS_FULL) == 0
  34. - || strcmp(word, "tf") == 0)
  35. + || strcmp(word, "tf") == 0
  36. + || strcmp(word, ":-(") == 0)
  37. return svn_cl__accept_theirs_full;
  38. if (strcmp(word, SVN_CL__ACCEPT_EDIT) == 0
  39. - || strcmp(word, "e") == 0)
  40. + || strcmp(word, "e") == 0
  41. + || strcmp(word, ":-E") == 0)
  42. return svn_cl__accept_edit;
  43. if (strcmp(word, SVN_CL__ACCEPT_LAUNCH) == 0
  44. - || strcmp(word, "l") == 0)
  45. + || strcmp(word, "l") == 0
  46. + || strcmp(word, ":-l") == 0)
  47. return svn_cl__accept_launch;
  48. /* word is an invalid action. */
  49. return svn_cl__accept_invalid;
  50. @@ -529,13 +536,13 @@ svn_cl__conflict_handler(svn_wc_conflict_result_t
  51. "resolve conflict\n"
  52. " (s) show all - show this list\n\n")));
  53. }
  54. - else if (strcmp(answer, "p") == 0)
  55. + else if (strcmp(answer, "p") == 0 || strcmp(answer, ":-P") == 0)
  56. {
  57. /* Do nothing, let file be marked conflicted. */
  58. (*result)->choice = svn_wc_conflict_choose_postpone;
  59. break;
  60. }
  61. - else if (strcmp(answer, "mc") == 0)
  62. + else if (strcmp(answer, "mc") == 0 || strcmp(answer, "X-)") == 0)
  63. {
  64. if (desc->is_binary)
  65. {
  66. @@ -559,7 +566,7 @@ svn_cl__conflict_handler(svn_wc_conflict_result_t
  67. (*result)->save_merged = TRUE;
  68. break;
  69. }
  70. - else if (strcmp(answer, "tc") == 0)
  71. + else if (strcmp(answer, "tc") == 0 || strcmp(answer, "X-(") == 0)
  72. {
  73. if (desc->is_binary)
  74. {
  75. @@ -582,14 +589,14 @@ svn_cl__conflict_handler(svn_wc_conflict_result_t
  76. (*result)->save_merged = TRUE;
  77. break;
  78. }
  79. - else if (strcmp(answer, "mf") == 0)
  80. + else if (strcmp(answer, "mf") == 0 || strcmp(answer, ":-)") == 0)
  81. {
  82. (*result)->choice = svn_wc_conflict_choose_mine_full;
  83. if (performed_edit)
  84. (*result)->save_merged = TRUE;
  85. break;
  86. }
  87. - else if (strcmp(answer, "tf") == 0)
  88. + else if (strcmp(answer, "tf") == 0 || strcmp(answer, ":-(") == 0)
  89. {
  90. (*result)->choice = svn_wc_conflict_choose_theirs_full;
  91. if (performed_edit)
  92. @@ -637,13 +644,13 @@ svn_cl__conflict_handler(svn_wc_conflict_result_t
  93. SVN_ERR(show_diff(desc, subpool));
  94. knows_something = TRUE;
  95. }
  96. - else if (strcmp(answer, "e") == 0)
  97. + else if (strcmp(answer, "e") == 0 || strcmp(answer, ":-E") == 0)
  98. {
  99. SVN_ERR(open_editor(&performed_edit, desc, b, subpool));
  100. if (performed_edit)
  101. knows_something = TRUE;
  102. }
  103. - else if (strcmp(answer, "l") == 0)
  104. + else if (strcmp(answer, "l") == 0 || strcmp(answer, ":-l") == 0)
  105. {
  106. if (desc->kind == svn_wc_conflict_kind_property)
  107. {
  108. @@ -729,17 +736,17 @@ svn_cl__conflict_handler(svn_wc_conflict_result_t
  109. "(overwrite pre-existing item)\n"
  110. " (h) help - show this help\n\n")));
  111. }
  112. - if (strcmp(answer, "p") == 0)
  113. + if (strcmp(answer, "p") == 0 || strcmp(answer, ":-P") == 0)
  114. {
  115. (*result)->choice = svn_wc_conflict_choose_postpone;
  116. break;
  117. }
  118. - if (strcmp(answer, "mf") == 0)
  119. + if (strcmp(answer, "mf") == 0 || strcmp(answer, ":-)") == 0)
  120. {
  121. (*result)->choice = svn_wc_conflict_choose_mine_full;
  122. break;
  123. }
  124. - if (strcmp(answer, "tf") == 0)
  125. + if (strcmp(answer, "tf") == 0 || strcmp(answer, ":-(") == 0)
  126. {
  127. (*result)->choice = svn_wc_conflict_choose_theirs_full;
  128. break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement