You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Julian Foad <ju...@btopenworld.com> on 2008/03/26 15:11:48 UTC

[PATCH] Help text improvements for 'svn merge'

For your consideration:

[[[
Improve the help text for 'svn merge'.

* subversion/svn/main.c
   (svn_cl__cmd_table): In the entry for "merge":
     change the position of ellipses to try to better convey the syntax;
     correct the default revision range from "1:HEAD" to "0:HEAD";
     re-word the note about tracking merges for accuracy and readability;
     add a note about --ignore-ancestry suppressing the tracking.
]]]

Index: subversion/svn/main.c
===================================================================
--- subversion/svn/main.c       (revision 30056)
+++ subversion/svn/main.c       (working copy)
@@ -586,7 +586,7 @@
      ("Apply the differences between two sources to a working copy path.\n"
       "usage: 1. merge sourceURL1[@N] sourceURL2[@M] [WCPATH]\n"
       "       2. merge sourceWCPATH1@N sourceWCPATH2@M [WCPATH]\n"
-     "       3. merge [-c M[,N]... | -r N:M...] SOURCE[@REV] [WCPATH]\n"
+     "       3. merge [-c M[,N...] | -r N:M ...] SOURCE[@REV] [WCPATH]\n"
       "\n"
       "  1. In the first form, the source URLs are specified at revisions\n"
       "     N and M.  These are the two sources to be compared.  The revisions\n"
@@ -602,7 +602,7 @@
       "     for each revision range provided.  If REV is not specified, HEAD\n"
       "     is assumed.  '-c M' is equivalent to '-r <M-1>:M', and '-c -M'\n"
       "     does the reverse: '-r M:<M-1>'.  If no revision ranges are\n"
-     "     specified, the default range of 1:HEAD is used.  Multiple '-c'\n"
+     "     specified, the default range of 0:HEAD is used.  Multiple '-c'\n"
       "     and/or '-r' instances may be specified, and mixing of forward\n"
       "     and reverse ranges is allowed.\n"
       "\n"
@@ -611,10 +611,12 @@
       "  the sources have identical basenames that match a file within '.':\n"
       "  in which case, the differences will be applied to that file.\n"
       "\n"
-     "  NOTE:  Subversion will only internally track metadata about the\n"
-     "  merge operation if the two sources are ancestrally related -- if the\n"
+     "  NOTE:  Subversion will only record metadata to track the merge\n"
+     "  if the two sources are on the same line of history -- if the\n"
       "  first source is an ancestor of the second, or vice-versa.  This is\n"
-     "  guaranteed to be the case when using the third form listed above.\n"),
+     "  guaranteed to be the case when using the third form listed above.\n"
+     "  The --ignore-ancestry option overrides this, forcing Subversion to\n"
+     "  regard the sources as unrelated and not to track the merge.\n"),
      {'r', 'c', 'N', opt_depth, 'q', opt_force, opt_dry_run, opt_merge_cmd,
       opt_record_only, 'x', opt_ignore_ancestry, opt_accept, opt_reintegrate} },

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] Help text improvements for 'svn merge'

Posted by Julian Foad <ju...@btopenworld.com>.
Eric Gillespie wrote:
> Julian Foad <ju...@btopenworld.com> writes:
>>For your consideration:
>>
>>[[[
>>Improve the help text for 'svn merge'.
> 
> 
> +1

Committed in r30098. Proposed for back-port to 1.5.x branch.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] Help text improvements for 'svn merge'

Posted by Eric Gillespie <ep...@google.com>.
Julian Foad <ju...@btopenworld.com> writes:

> For your consideration:
> 
> [[[
> Improve the help text for 'svn merge'.

+1

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org