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.

144 lines
6.6 KiB

  1. diff -ur subversion-1.0.0/subversion/clients/cmdline/cl.h subversion-1.0.0_sm/subversion/clients/cmdline/cl.h
  2. --- subversion-1.0.0/subversion/clients/cmdline/cl.h 2004-01-21 03:48:39.000000000 +0100
  3. +++ subversion-1.0.0_sm/subversion/clients/cmdline/cl.h 2004-02-26 21:56:45.163096472 +0100
  4. @@ -51,6 +51,7 @@
  5. svn_cl__config_dir_opt,
  6. svn_cl__diff_cmd_opt,
  7. svn_cl__dry_run_opt,
  8. + svn_cl__duplicate_opt,
  9. svn_cl__editor_cmd_opt,
  10. svn_cl__encoding_opt,
  11. svn_cl__force_log_opt,
  12. @@ -119,6 +120,7 @@
  13. svn_boolean_t ignore_ancestry; /* ignore ancestry for merge-y operations */
  14. svn_boolean_t stop_on_copy; /* don't cross copies during processing */
  15. svn_boolean_t dry_run; /* try operation but make no changes */
  16. + svn_boolean_t duplicate; /* simply duplicate copied files and dirs */
  17. svn_boolean_t revprop; /* operate on a revision property */
  18. const char *diff_cmd; /* the external diff command to use */
  19. const char *merge_cmd; /* the external merge command to use */
  20. diff -ur subversion-1.0.0/subversion/clients/cmdline/main.c subversion-1.0.0_sm/subversion/clients/cmdline/main.c
  21. --- subversion-1.0.0/subversion/clients/cmdline/main.c 2004-02-19 03:49:12.000000000 +0100
  22. +++ subversion-1.0.0_sm/subversion/clients/cmdline/main.c 2004-02-26 21:58:47.786454888 +0100
  23. @@ -103,6 +103,8 @@
  24. "do no interactive prompting"},
  25. {"dry-run", svn_cl__dry_run_opt, 0,
  26. "try operation but make no changes"},
  27. + {"duplicate", svn_cl__duplicate_opt, 0,
  28. + "simply duplicate copied files and directories"},
  29. {"no-diff-deleted", svn_cl__no_diff_deleted, 0,
  30. "do not print differences for deleted files"},
  31. {"notice-ancestry", svn_cl__notice_ancestry_opt, 0,
  32. @@ -369,7 +371,7 @@
  33. " the sources have identical basenames that match a file within '.':\n"
  34. " in which case, the differences will be applied to that file.\n",
  35. {'r', 'N', 'q', svn_cl__force_opt, svn_cl__dry_run_opt,
  36. - svn_cl__merge_cmd_opt, svn_cl__ignore_ancestry_opt,
  37. + svn_cl__duplicate_opt, svn_cl__merge_cmd_opt, svn_cl__ignore_ancestry_opt,
  38. SVN_CL__AUTH_OPTIONS, svn_cl__config_dir_opt} },
  39. { "mkdir", svn_cl__mkdir, {0},
  40. @@ -833,6 +835,9 @@
  41. case svn_cl__dry_run_opt:
  42. opt_state.dry_run = TRUE;
  43. break;
  44. + case svn_cl__duplicate_opt:
  45. + opt_state.duplicate = TRUE;
  46. + break;
  47. case svn_cl__revprop_opt:
  48. opt_state.revprop = TRUE;
  49. break;
  50. diff -ur subversion-1.0.0/subversion/clients/cmdline/merge-cmd.c subversion-1.0.0_sm/subversion/clients/cmdline/merge-cmd.c
  51. --- subversion-1.0.0/subversion/clients/cmdline/merge-cmd.c 2004-01-21 03:48:39.000000000 +0100
  52. +++ subversion-1.0.0_sm/subversion/clients/cmdline/merge-cmd.c 2004-02-26 21:56:45.165096168 +0100
  53. @@ -165,6 +165,7 @@
  54. opt_state->ignore_ancestry,
  55. opt_state->force,
  56. opt_state->dry_run,
  57. + opt_state->duplicate,
  58. ctx,
  59. pool);
  60. if (err)
  61. diff -ur subversion-1.0.0/subversion/include/svn_client.h subversion-1.0.0_sm/subversion/include/svn_client.h
  62. --- subversion-1.0.0/subversion/include/svn_client.h 2004-01-24 18:06:20.000000000 +0100
  63. +++ subversion-1.0.0_sm/subversion/include/svn_client.h 2004-02-26 21:56:45.166096016 +0100
  64. @@ -848,6 +848,7 @@
  65. svn_boolean_t ignore_ancestry,
  66. svn_boolean_t force,
  67. svn_boolean_t dry_run,
  68. + svn_boolean_t duplicate,
  69. svn_client_ctx_t *ctx,
  70. apr_pool_t *pool);
  71. diff -ur subversion-1.0.0/subversion/libsvn_client/diff.c subversion-1.0.0_sm/subversion/libsvn_client/diff.c
  72. --- subversion-1.0.0/subversion/libsvn_client/diff.c 2004-01-24 17:52:15.000000000 +0100
  73. +++ subversion-1.0.0_sm/subversion/libsvn_client/diff.c 2004-02-26 21:56:45.169095560 +0100
  74. @@ -622,6 +622,7 @@
  75. struct merge_cmd_baton {
  76. svn_boolean_t force;
  77. svn_boolean_t dry_run;
  78. + svn_boolean_t duplicate;
  79. const char *target; /* Working copy target of merge */
  80. const char *url; /* The second URL in the merge */
  81. const char *path; /* The wc path of the second target, this
  82. @@ -772,7 +773,7 @@
  83. struct merge_cmd_baton *merge_b = baton;
  84. apr_pool_t *subpool = svn_pool_create (merge_b->pool);
  85. svn_node_kind_t kind;
  86. - const char *copyfrom_url;
  87. + const char *copyfrom_url = NULL;
  88. const char *child;
  89. /* Easy out: if we have no adm_access for the parent directory,
  90. @@ -804,8 +805,10 @@
  91. {
  92. child = svn_path_is_child(merge_b->target, mine, merge_b->pool);
  93. assert (child != NULL);
  94. - copyfrom_url = svn_path_join (merge_b->url, child, merge_b->pool);
  95. - SVN_ERR (check_schema_match (adm_access, copyfrom_url));
  96. + if ( merge_b->duplicate == FALSE ) {
  97. + copyfrom_url = svn_path_join (merge_b->url, child, merge_b->pool);
  98. + SVN_ERR (check_schema_match (adm_access, copyfrom_url));
  99. + }
  100. /* Since 'mine' doesn't exist, and this is
  101. 'merge_file_added', I hope it's safe to assume that
  102. @@ -951,7 +954,8 @@
  103. apr_pool_t *subpool = svn_pool_create (merge_b->pool);
  104. svn_node_kind_t kind;
  105. const svn_wc_entry_t *entry;
  106. - const char *copyfrom_url, *child;
  107. + const char *copyfrom_url = NULL;
  108. + const char *child;
  109. /* Easy out: if we have no adm_access for the parent directory,
  110. then this portion of the tree-delta "patch" must be inapplicable.
  111. @@ -966,8 +970,10 @@
  112. child = svn_path_is_child (merge_b->target, path, subpool);
  113. assert (child != NULL);
  114. - copyfrom_url = svn_path_join (merge_b->url, child, subpool);
  115. - SVN_ERR (check_schema_match (adm_access, copyfrom_url));
  116. + if ( merge_b->duplicate == FALSE ) {
  117. + copyfrom_url = svn_path_join (merge_b->url, child, subpool);
  118. + SVN_ERR (check_schema_match (adm_access, copyfrom_url));
  119. + }
  120. SVN_ERR (svn_io_check_path (path, &kind, subpool));
  121. switch (kind)
  122. @@ -1967,6 +1973,7 @@
  123. svn_boolean_t ignore_ancestry,
  124. svn_boolean_t force,
  125. svn_boolean_t dry_run,
  126. + svn_boolean_t duplicate,
  127. svn_client_ctx_t *ctx,
  128. apr_pool_t *pool)
  129. {
  130. @@ -2014,6 +2021,7 @@
  131. merge_cmd_baton.force = force;
  132. merge_cmd_baton.dry_run = dry_run;
  133. + merge_cmd_baton.duplicate = duplicate;
  134. merge_cmd_baton.target = target_wcpath;
  135. merge_cmd_baton.url = URL2;
  136. merge_cmd_baton.revision = revision2;