[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Why does "svn diff" forbid "-rCOMMITTED"?

From: <kfogel_at_collab.net>
Date: 2003-09-23 21:27:08 CEST

Julian Foad <julianfoad@btopenworld.com> writes:
> Anyone agree or disagree with this?

Uh, can it be boiled down to a simpler question or set of questions?

(Sorry, don't mean to be rude, but it's hard wade through...)

> Julian Foad wrote:
> > cmpilato@collab.net wrote:
> >
> >> Julian Foad <julianfoad@btopenworld.com> writes:
> >>
> >>> Ben Collins-Sussman wrote:
> >>>
> >>>> Julian Foad <julianfoad@btopenworld.com> writes:
> >>>>
> >>>>> What is the reason for this bit of code that forbids "-rCOMMITTED"?
> >>>>> It does not forbid "-rPREV".
> >>>>
> >>>> Huh... I'm not sure why we forbid COMMITTED, but not PREV. They're
> >>>> very similar revision keywords. cmpilato will be back from vacation
> > ...
> >>> (re. the lines leading up to the message "do_diff: COMMITTED
> >>> nomenclature not supported" in subversion/libsvn_client/diff.c)
> >>>
> >>> I propose to delete those five lines, thus enabling "COMMITTED" to
> >>> be used.
> >>
> >> Thus enabling COMMITTED to be used incorrectly, you mean.
> >>
> >> What is the expected behavior when COMMITTED is used in conjunction
> >> with a URL input path? Does it peg one particular revision number for
> >> whole tree, or does it get effectively re-evaluated for each path
> >> (like BASE and WORKING do)?
> > First, do we agree on the meaning of COMMITTED?
> > COMMITTED: the newest revision in which the item was changed before
> > or at the BASE revision. (Therefore a working copy is required. In
> > fact the WC admin data includes the COMMITTED revision number.) In
> > particular, if the WC is not up to date then COMMITTED does not mean
> > the most recently revision of the item in the repository.
> > PREV: strictly (COMMITTED - 1).
> > These definitions are not fully stated in the Book or in the
> > built-in help, but are what is implemented.
> > Second, do you agree that if PREV is allowed then COMMITTED should
> > also be allowed, or conversely if COMMITTED is forbidden then PREV
> > should be forbidden?
> > COMMITTED and PREV, like BASE and the (implied) WORKING revision
> > types all require access to a working copy. There is a check in
> > subversion/libsvn_client/diff.c (do_diff) that throws an error if a
> > local-type revision is requested on a URL. That checks for BASE and
> > WORKING and probably needs to be extended to cover COMMITTED and
> > PREV as well. I believe that would prevent the problem that you
> > forsee. It would allow COMMITTED to be used with locally-specified
> > paths, just as PREV is already allowed.
> > Actually, that check is pretty redundant because a sensible error
> > message comes out anyway. PREV with a URL (not checked by do_diff):
> > ~/src/subversion> svn diff -rPREV:HEAD
> > http://svn.collab.net/repos/svn/trunk/HACKING
> > svn: A path under revision control is needed for this operation
> > svn: svn_client__get_revision_number: need a version-controlled path
> > to fetch local revision info.
> > BASE with a URL (is checked and forbidden by do_diff):
> > ~/src/subversion> svn diff -rBASE:HEAD
> > http://svn.collab.net/repos/svn/trunk/HACKING
> > svn: Incorrect parameters given
> > svn: do_diff: invalid revision specifier for URL path
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 23 22:16:57 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.