On 03/07/2007 2.36, Daniel Rall wrote:
> While this functionality could be delivered by piggy-backing on
> existing sub-commands ('svn log' and 'svn info' have been considered
> at length), discussion leads me to believe that we might be better off
> introducing a new sub-command to deliver these features:
> svn mergeinfo --available-from=URL TARGET[@REV]
> svn mergeinfo [-r ARG] [--merged-from | --merged-to] TARGET[@REV]
I guess TARGET defaults to ".", right?
In that case, I assume that a bare "svn mergeinfo" means "show me all
revisions that have been into the current trunk".
That's fine, but I would also love the opposite: "show me all the
(non-blocked) revisions available for merging from *ALL* the URL I've been
merging with". That's a very useful command that's not available in svnmerge.py.
[The scenario I'm thinking of is that of a shared library/module which is
copied within several projects. Bidirectional merges are used to import new
developments from the copies within the projects into the global shared
module, and then propagate those changes them back into the other projects.
In this scenario, the maintainer of the shared library/module needs to answer
his SCM: please show me all changes in all projects that I might want to
incorporate into the global shared module. This answer would require something
like "svnmerge avail-all" which does not exist]
So, my own suggestion is to use two different commands. I don't think that's
harder on users than having a single command with two totally-different
meanings, triggered by special options on the command line. On the contrary, I
think it's easier for them.
svn mergeinfo [-r ARG] [--merged-from | --merged-to] TARGET[@REV]
svn mergeavail [--from URL] TARGET[@REV]
> $ svn mergeinfo --merged-to /trunk
> At r14, merged r3-7, r13 from /branches/featureX to /trunk
> At r60, merged r30-57 from /branches/featureY to /trunk
Please, use an output which is *very* machine-oriented. Most users will be
better off using a graphical merge tool anyway (what's "r14", "r3", "r13"? A
graphical merge tool can just show you those graphically).
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Tue Jul 3 11:39:25 2007