mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

158 lines
6.8 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/rene/subversion/svn_sm.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./subversion/libsvn_client/diff.c.orig 2004-06-25 15:27:54.000000000 +0200
  20. +++ ./subversion/libsvn_client/diff.c 2004-09-02 18:01:49.000000000 +0200
  21. @@ -624,6 +624,7 @@
  22. struct merge_cmd_baton {
  23. svn_boolean_t force;
  24. svn_boolean_t dry_run;
  25. + svn_boolean_t duplicate;
  26. const char *target; /* Working copy target of merge */
  27. const char *url; /* The second URL in the merge */
  28. const char *path; /* The wc path of the second target, this
  29. @@ -776,7 +777,7 @@
  30. struct merge_cmd_baton *merge_b = baton;
  31. apr_pool_t *subpool = svn_pool_create (merge_b->pool);
  32. svn_node_kind_t kind;
  33. - const char *copyfrom_url;
  34. + const char *copyfrom_url = NULL;
  35. const char *child;
  36. /* Easy out: if we have no adm_access for the parent directory,
  37. @@ -808,8 +809,10 @@
  38. {
  39. child = svn_path_is_child(merge_b->target, mine, merge_b->pool);
  40. assert (child != NULL);
  41. - copyfrom_url = svn_path_join (merge_b->url, child, merge_b->pool);
  42. - SVN_ERR (check_schema_match (adm_access, copyfrom_url));
  43. + if ( merge_b->duplicate == FALSE ) {
  44. + copyfrom_url = svn_path_join (merge_b->url, child, merge_b->pool);
  45. + SVN_ERR (check_schema_match (adm_access, copyfrom_url));
  46. + }
  47. /* Since 'mine' doesn't exist, and this is
  48. 'merge_file_added', I hope it's safe to assume that
  49. @@ -955,7 +958,8 @@
  50. apr_pool_t *subpool = svn_pool_create (merge_b->pool);
  51. svn_node_kind_t kind;
  52. const svn_wc_entry_t *entry;
  53. - const char *copyfrom_url, *child;
  54. + const char *copyfrom_url = NULL;
  55. + const char *child;
  56. /* Easy out: if we have no adm_access for the parent directory,
  57. then this portion of the tree-delta "patch" must be inapplicable.
  58. @@ -970,8 +974,10 @@
  59. child = svn_path_is_child (merge_b->target, path, subpool);
  60. assert (child != NULL);
  61. - copyfrom_url = svn_path_join (merge_b->url, child, subpool);
  62. - SVN_ERR (check_schema_match (adm_access, copyfrom_url));
  63. + if ( merge_b->duplicate == FALSE ) {
  64. + copyfrom_url = svn_path_join (merge_b->url, child, subpool);
  65. + SVN_ERR (check_schema_match (adm_access, copyfrom_url));
  66. + }
  67. SVN_ERR (svn_io_check_path (path, &kind, subpool));
  68. switch (kind)
  69. @@ -2234,6 +2240,7 @@
  70. svn_boolean_t ignore_ancestry,
  71. svn_boolean_t force,
  72. svn_boolean_t dry_run,
  73. + svn_boolean_t duplicate,
  74. svn_client_ctx_t *ctx,
  75. apr_pool_t *pool)
  76. {
  77. @@ -2285,6 +2292,7 @@
  78. merge_cmd_baton.force = force;
  79. merge_cmd_baton.dry_run = dry_run;
  80. + merge_cmd_baton.duplicate = duplicate;
  81. merge_cmd_baton.target = target_wcpath;
  82. merge_cmd_baton.url = URL2;
  83. merge_cmd_baton.revision = revision2;
  84. --- ./subversion/include/svn_client.h.orig 2004-06-16 22:26:00.000000000 +0200
  85. +++ ./subversion/include/svn_client.h 2004-09-02 18:01:49.000000000 +0200
  86. @@ -909,6 +909,7 @@
  87. svn_boolean_t ignore_ancestry,
  88. svn_boolean_t force,
  89. svn_boolean_t dry_run,
  90. + svn_boolean_t duplicate,
  91. svn_client_ctx_t *ctx,
  92. apr_pool_t *pool);
  93. --- ./subversion/clients/cmdline/cl.h.orig 2004-05-19 23:32:54.000000000 +0200
  94. +++ ./subversion/clients/cmdline/cl.h 2004-09-02 18:01:49.000000000 +0200
  95. @@ -51,6 +51,7 @@
  96. svn_cl__config_dir_opt,
  97. svn_cl__diff_cmd_opt,
  98. svn_cl__dry_run_opt,
  99. + svn_cl__duplicate_opt,
  100. svn_cl__editor_cmd_opt,
  101. svn_cl__encoding_opt,
  102. svn_cl__force_log_opt,
  103. @@ -120,6 +121,7 @@
  104. svn_boolean_t ignore_ancestry; /* ignore ancestry for merge-y operations */
  105. svn_boolean_t stop_on_copy; /* don't cross copies during processing */
  106. svn_boolean_t dry_run; /* try operation but make no changes */
  107. + svn_boolean_t duplicate; /* simply duplicate copied files and dirs */
  108. svn_boolean_t revprop; /* operate on a revision property */
  109. const char *diff_cmd; /* the external diff command to use */
  110. const char *merge_cmd; /* the external merge command to use */
  111. --- ./subversion/clients/cmdline/main.c.orig 2004-09-02 17:56:45.000000000 +0200
  112. +++ ./subversion/clients/cmdline/main.c 2004-09-02 18:01:49.000000000 +0200
  113. @@ -112,6 +112,8 @@
  114. N_("do no interactive prompting")},
  115. {"dry-run", svn_cl__dry_run_opt, 0,
  116. N_("try operation but make no changes")},
  117. + {"duplicate", svn_cl__duplicate_opt, 0,
  118. + "simply duplicate copied files and directories"},
  119. {"no-diff-deleted", svn_cl__no_diff_deleted, 0,
  120. N_("do not print differences for deleted files")},
  121. {"notice-ancestry", svn_cl__notice_ancestry_opt, 0,
  122. @@ -412,7 +414,7 @@
  123. " the sources have identical basenames that match a file within '.':\n"
  124. " in which case, the differences will be applied to that file.\n"),
  125. {'r', 'N', 'q', svn_cl__force_opt, svn_cl__dry_run_opt,
  126. - svn_cl__merge_cmd_opt, svn_cl__ignore_ancestry_opt,
  127. + svn_cl__duplicate_opt, svn_cl__merge_cmd_opt, svn_cl__ignore_ancestry_opt,
  128. SVN_CL__AUTH_OPTIONS, svn_cl__config_dir_opt} },
  129. { "mkdir", svn_cl__mkdir, {0},
  130. @@ -888,6 +890,9 @@
  131. case svn_cl__dry_run_opt:
  132. opt_state.dry_run = TRUE;
  133. break;
  134. + case svn_cl__duplicate_opt:
  135. + opt_state.duplicate = TRUE;
  136. + break;
  137. case svn_cl__revprop_opt:
  138. opt_state.revprop = TRUE;
  139. break;
  140. --- ./subversion/clients/cmdline/merge-cmd.c.orig 2004-09-02 17:57:41.000000000 +0200
  141. +++ ./subversion/clients/cmdline/merge-cmd.c 2004-09-02 18:01:49.000000000 +0200
  142. @@ -190,6 +190,7 @@
  143. opt_state->ignore_ancestry,
  144. opt_state->force,
  145. opt_state->dry_run,
  146. + opt_state->duplicate,
  147. ctx,
  148. pool);
  149. }