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.

139 lines
6.0 KiB

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