You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Matthias Wächter <Ma...@tttech.com> on 2005/03/04 13:36:55 UTC

Older versions through http-repository browsing

Hi folks!

The documentation 
(http://svnbook.red-bean.com/en/1.1/ch06s04.html#svn-ch-6-sect-4.5.1) 
states very clearly, that browsing is limited to the latest release of the 
repository. The only explanation for this impossibility is that this is an 
issue of WebDAV/DeltaV and can't be solved with mod_dav_svn, only if the 
browser knows how to handle PROPFIND requests and such.

What unit in the chain

User
->Browser
->apache
->mod_dav
->mod_dav_svn
->database

does not allow a "simple" revision number selection, for example by 
appending ?r=<rel>" to the URL?

So instead of:

        http://server/repos/trunk/file

use

        http://server/repos/trunk/file?r=105

or maybe (worse than the former because the URI does not match the repos):

        http://server/revisioned-repos/105/trunk/file


Why is it possible to browse the 'latest' release without PROPFIND, but 
selecting a revision cannot be done by 'masquerading' (escaping) the 
request for higher layers not allowing such a construct directly?

Or is it just for the purpose of making Apps like ViewCVS or WebSVN sell 
at all? ;-)

- Matthias

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

Re: Older versions through http-repository browsing

Posted by Michael Sinz <mi...@gmail.com>.
On 3/4/05, Matthias Wächter <Ma...@tttech.com> wrote:
> Michael,
> 
> Michael Sinz <mi...@gmail.com> wrote on 04.03.2005 17:12:03:
> 
> > For a file with this basic URL:  http://server/svn/repo/trunk/file.txt
> > you get a request with this
> http://server/get.cgi/repo/trunk/file.txt?r=123
> 
> Yeah, again, you need a separate URL. Consider documentation valid and
> usable for a two-digit number of years. This documentation would have to
> mention the repository browser as well just to get hold of the precise
> revision.

Ok, I just thought I would point out that the Insurrection tools now always
use the repository URL paths with query strings to support all of the
repository based features (get, diff, annotate, log, rss, etc)

You can check it out at http://svn.sinz.com:8000/ (look at the "Web"
repository - it is the one that has all of the Insurrection code in it.)

-- 
Michael Sinz               Technology and Engineering Director/Consultant
"Starting Startups"                          mailto:Michael.Sinz@sinz.org
My place on the web                      http://www.sinz.org/Michael.Sinz

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


Re: Older versions through http-repository browsing

Posted by Toby Johnson <to...@etjohnson.us>.
Matthias Wächter wrote:

>http://server/get.cgi/repo/trunk/file.txt?r=123
>
>Yeah, again, you need a separate URL.
>
If what you want is the ability to add parameters to a Subversion URL, 
have a look at Apache's mod_rewrite:
http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
http://httpd.apache.org/docs-2.0/misc/rewriteguide.html

You could easily accomplish what you want by turning
http://server/svn/trunk/foo.txt?r=1234

into an appropriate WebSVN or ViewCVS URL.

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


Re: Older versions through http-repository browsing

Posted by Matthias Wächter <Ma...@tttech.com>.
Michael,

Michael Sinz <mi...@gmail.com> wrote on 04.03.2005 17:12:03:

> That is what "tags" are for if you want something "stable"

No, "tags" are for if you want something "tagged". Stability is only 
guaranteed if you consider the revision as well.

> For a file with this basic URL:  http://server/svn/repo/trunk/file.txt
> you get a request with this 
http://server/get.cgi/repo/trunk/file.txt?r=123

Yeah, again, you need a separate URL. Consider documentation valid and 
usable for a two-digit number of years. This documentation would have to 
mention the repository browser as well just to get hold of the precise 
revision.

- Matthias

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

Re: Older versions through http-repository browsing

Posted by Michael Sinz <mi...@gmail.com>.
On Fri, 4 Mar 2005 16:39:02 +0100, Matthias Wächter
<Ma...@tttech.com> wrote:
> Ben,
> 
> Ben Collins-Sussman <su...@collab.net> wrote on 04.03.2005 15:22:04:
> 
> > >         http://server/repos/trunk/file?r=105
> > ... a syntax similar to this already exists, and always has.  But it's
> > a secret.
> >
> > The point is that the WebDAV/DeltaV specification forbids the syntax
> > from being public.   DeltaV clients are supposed to send a series of
> > PROPFIND requests that result in the "discovery" of the URL.

[...]

> That's ok with me in general, but what purpose has the famous
> browser-based repository browsing feature if it does not allow arbitrary
> single-file exports? I mean, wow, what a feature, I can point anyone to a
> file, but neither me nor the other party can assure that what _he_ sees in
> his browser is the same _I_ saw in the browser or what was checked in at
> all.

That is what "tags" are for if you want something "stable"

> > Meanwhile, there are plenty of CGI programs out there explicitly made
> > for browsing a repository, such as ViewCVS or WebSVN.  Their syntaxes
> > are public.
> 
> You mean something like this?
> 
> http://server/WebSVN/filedetails.php?repname=repos&path=%2Ftrunk%2Ffile&rev=105&sc=1
> 
> Hmmm ... don't like it at all. Maybe I'm missing something here, but the
> URI syntax is only usable to make links work inside the app, nothing more.

I had some of the same issues and some others.  So I built and now released
publicly my "Insurrection Web Tools for Subversion"  They are still rough
as far as installing (actually, they are easy to install, you just
have to "know"
what to do since I did not write the install documentation yet :-)

URLs from there are something like this:

For a file with this basic URL:  http://server/svn/repo/trunk/file.txt
you get a request with this http://server/get.cgi/repo/trunk/file.txt?r=123

(Plus all sorts of other features.)

-- 
Michael Sinz               Technology and Engineering Director/Consultant
"Starting Startups"                          mailto:Michael.Sinz@sinz.org
My place on the web                      http://www.sinz.org/Michael.Sinz

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


Re: Older versions through http-repository browsing

Posted by "C. Michael Pilato" <cm...@collab.net>.
Ben Collins-Sussman <su...@collab.net> writes:

> > Or is it just for the purpose of making Apps like ViewCVS or
> > WebSVN sell at all? ;-)
> >
> 
> "Sell"?  Yeah, those authors are raking in the money.  :-)

What!?  Am I the *only* ViewCVS developer sipping martinis and racing
around in the Jag I purchased solely on the ViewCVS proceeds?  Hrm.
That's interesting...

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

Re: Older versions through http-repository browsing

Posted by Matthias Waechter <Ma...@tttech.com>.
Julian,

Julian Reschke <ju...@gmx.de> wrote on 04.03.2005 18:18:14:

>> The point is that the WebDAV/DeltaV specification forbids the syntax 
>> from being public.   DeltaV clients are supposed to send a series of 
> No, it doesn't. It just doesn't specify one and leaves it to the server 
> implementation.

> DeltaV requires that a version URI stays the same 
> once the version was created.

Oh, good news! Is this considered in Subversion at all? If the developers 
consider changing the URI syntax at some time, they would have to save the 
'old syntax' for not breaking older releases ...

- Matthias


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

Re: Older versions through http-repository browsing

Posted by Julian Reschke <ju...@gmx.de>.
Ben Collins-Sussman wrote:
> 
> On Mar 4, 2005, at 7:36 AM, Matthias Wächter wrote:
> 
>>
>> What unit in the chain
>>
>> User
>> ->Browser
>> ->apache
>> ->mod_dav
>> ->mod_dav_svn
>> ->database
>>
>> does not allow a "simple" revision number selection, for example by
>> appending ?r=<rel>" to the URL?
>>
> 
> There's nothing that prevents doing that.  In fact,
> 
>>
>>
>>         http://server/repos/trunk/file?r=105
> 
> 
> ... a syntax similar to this already exists, and always has.  But it's a 
> secret.
> 
> The point is that the WebDAV/DeltaV specification forbids the syntax 
> from being public.   DeltaV clients are supposed to send a series of 

No, it doesn't. It just doesn't specify one and leaves it to the server 
implementation.

> PROPFIND requests that result in the "discovery" of the URL.  And once 
> the client has the URL, it treats it as an opaque object;  it's not 
> allowed to understand the syntax, and it's *definitely* not allowed to 
> assume that the syntax will stay the same.  The server might have N 
> different syntaxes, or might change its syntax at any time.

That would be a bug. DeltaV requires that a version URI stays the same 
once the version was created.

> ...

Best regards, Julian


-- 
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

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

Re: Older versions through http-repository browsing

Posted by Michael Sinz <mi...@gmail.com>.
On Fri, 4 Mar 2005 19:25:06 +0100, Matthias Waechter
<Ma...@tttech.com> wrote:
>
[...]
> > Through the use of the pre-commit hook, you can make the /tags
> > directory for a project be write-once (you can create a new tag, but you
> 
> > cannot rename a tag, nor change any files within that tag).
> > I'm actually suprised that there isn't an example to do something this
> > included with the source.  I'm sure someone else has written something,
> > but if no one speaks up, I'll do it myself, and it'll be in Perl, just
> > to annoy the Python zealots... ;-)
> 
> Well, I am surprised to see so much information describing the behavior of
> a database is stored in unversioned, text-based files (hook-scripts,
> config files, access control). I think this topic requires a rewrite some
> day anyway ...

Well, that depends.  I actually store the pre-commit hook in the repository
itself.  I use a softlink in the hooks directory to point to the local location
where the pre-commit hook is stored.  I then have a post-commit hook that
causes the admin areas of the server to be "svn up"ed if those areas
were touched in the commit.  This includes the access control files
and the hooks and all of the administrative CGIs and repository browsing
tools (all of this is part of the insurrection project)  This is in
live operation
right now in multiple organizations.

-- 
Michael Sinz               Technology and Engineering Director/Consultant
"Starting Startups"                          mailto:Michael.Sinz@sinz.org
My place on the web                      http://www.sinz.org/Michael.Sinz

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

Re: Older versions through http-repository browsing

Posted by Michael Sinz <mi...@gmail.com>.
On Fri, 04 Mar 2005 12:49:50 -0500, John Peacock <jp...@rowman.com> wrote:
> Matthias Wächter wrote:
[...]
> Now, for the good news, although Subversion doesn't impose any specific
> meaning to the tags/ folder for your project, that doesn't mean _you_
> can't.  Through the use of the pre-commit hook, you can make the /tags
> directory for a project be write-once (you can create a new tag, but you
> cannot rename a tag, nor change any files within that tag).

That is what we do in all of our repositories (along with some other rules
such as a releases tag folder that production can only make new "tags"
in)

> I'm actually suprised that there isn't an example to do something this
> included with the source.  I'm sure someone else has written something,
> but if no one speaks up, I'll do it myself, and it'll be in Perl, just
> to annoy the Python zealots... ;-)

(ok, here is a Perl version...)

I would submit the version I have here.  It enforces a few rules, including
not changing anything at the root of the repository and only new entries
in /tags and /releases (access control is handled elsewhere)

If I have not yet checked this into the Insurrection project, it will
be there soon,
but I am including it here for reference:

-- 
Michael Sinz               Technology and Engineering Director/Consultant
"Starting Startups"                          mailto:Michael.Sinz@sinz.org
My place on the web                      http://www.sinz.org/Michael.Sinz

Re: Older versions through http-repository browsing

Posted by Matthias Waechter <Ma...@tttech.com>.
John,

John Peacock <jp...@rowman.com> wrote on 04.03.2005 19:54:11:

> > Well, then you need a policy that forbids creating tags with names 
> > reserved for future use. What would you do if someone accidentially 
> > creates a tag named "release-2.5.1" if should've been "release-2.4.1"? 

> > Then you have a useless nightmare of deactivating the hook script, 
> > changing the tag (renaming the directory) and re-activating the hook 
> > script.
> That's a management issue, not a software issue.

Just because it's a management issue doesn't mean there should be no 
solution "down there". Referring to a specific revision is always correct, 
and in some application (safety critical projects as mentioned) _that_ is 
the point. It's not a question of firing the one who broke the tag, or 
adding policies to the work flow.

> If this is your particular itch, feel free to start working up a spec 
> for discussion.  I doubt trying to bully the developers here into adding 

> belt and braces[1] for a feature that most people manage through policy 
> isn't going to work.

I think, eventually I should look at the code myself and see how things 
happen now and how I would like them to happen in the future. There is 
quite some documentation for the internal SVN flow not mentioned in the 
book I have to read before.

My only concern is putting the "/!svn/bc/<REV>" stuff into an optional 
"?r=" parameter. This would leave the whole repository part of the URL 
intact so that it can be cut&paste to the CLI or whatever client. 
Additionally, changing things at the client side, maybe the "?r=" could be 
supported to enhance the "-r" switch for checkout and update.

> > That's what you have to do if you don't trust tagging operations. 
> 
> And here is the crux of your problem.  _You_ don't trust your users to 
> follow a policy (whatever it might be) and you want the software to 
> protect you from your users.  _We_ don't have a problem establishing a 
> policy and whacking anyone who violates it.  Since every tree change is 
> versioned (modulo revprops), it is always possible to use other means to 

> correct any violation (but it might be inconvenient).

Exactly, that's the crux. I don't want the software to protect me from the 
users, a pre-commit or other hook policy would enforce such thing. Instead 
the other way round: I don't want to make any assumptions on the behavior 
of the employees or other people working with the repository except for 
low-level repository access. And I can't make this assumption since 
policies change over years, good employees come and bad ones go, but the 
repositories might have to give back information for decades. That's why I 
need the internal policy requiring that in a document a reference has to 
include the specific revision number, not only the tag, to make absolutely 
sure that what I mean now is the same as what others see in thirty years.

Concerning other means: First you have to actually _see_ the violation. 
The best case is if you once see the violation, the worst is if you rely 
on the policy but it's invisibly broken. For whatever reason.

> There are plenty of much more important (IMHO) features to get into 
> Subversion before something like a flexible policy manager gets to the 
> top of the list (locking, true renames, and foreward references, not to 
> mention a SQL repository).

Of course, there is a lot to do, (not to mention merge tracking). To make 
my point here: I don't request a policy manager! It's just having revision 
selection in the URL for ease in documentation, that's all.

- Matthias

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

Re: Older versions through http-repository browsing

Posted by John Peacock <jp...@rowman.com>.
Matthias Waechter wrote:

> Well, then you need a policy that forbids creating tags with names 
> reserved for future use. What would you do if someone accidentially 
> creates a tag named "release-2.5.1" if should've been "release-2.4.1"? 
> Then you have a useless nightmare of deactivating the hook script, 
> changing the tag (renaming the directory) and re-activating the hook 
> script.

That's a management issue, not a software issue.

If this is your particular itch, feel free to start working up a spec 
for discussion.  I doubt trying to bully the developers here into adding 
belt and braces[1] for a feature that most people manage through policy 
isn't going to work.

> If someone wants to refer to a version of a tag (and IMHO he always has 
> to), he just mentions the revision. So do the Subversion developers when 
> they refer to specific versions of files on the SVN-head (trunk). 

You are conflating two completely seperate workflows.  Tags are for 
released code (and indeed this is exactly how Subversion manages their 
own repository); you wouldn't ever need to tag each revision.  On the 
trunk, however, and specifically in a _single project_ repository, it is 
completely reasonable for the developers to internally use the global 
revision number as a short hand for a set of changes in a rapidly 
changing repository.

> That's what you have to do if you don't trust tagging operations. 

And here is the crux of your problem.  _You_ don't trust your users to 
follow a policy (whatever it might be) and you want the software to 
protect you from your users.  _We_ don't have a problem establishing a 
policy and whacking anyone who violates it.  Since every tree change is 
versioned (modulo revprops), it is always possible to use other means to 
correct any violation (but it might be inconvenient).

There are plenty of much more important (IMHO) features to get into 
Subversion before something like a flexible policy manager gets to the 
top of the list (locking, true renames, and foreward references, not to 
mention a SQL repository).

John

1. http://www.phrases.org.uk/meanings/61250.html

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748

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

Re: Older versions through http-repository browsing

Posted by Matthias Waechter <Ma...@tttech.com>.
John,

John Peacock <jp...@rowman.com> wrote on 04.03.2005 18:49:50:

> That's a carbon-based error; just because you /can/ remove a tag doesn't 

> mean you /should/.  CVS doesn't prevent you from being stupid (to a 
> large extent, neither does Subversion, but see below).  You have to have 

> a policy to deal with how you handle exactly this kind of procedure.

Yeah, but from a reproducibility POV, policy at time 'x' is not enough. 
Suppose you update the whole structure of your repository, you change from 
project/trunk to /trunk/project or vice versa. If I fix a revision by its 
number, I can always consider such a structural update. Without the 
revision number, I get stuck.

> Unlike some large commercial CM systems, you are allowed to set your own 

> procedure, rather than having to do things the way "they" decided was 
> correct.  I view this as a benefit.

So do I. Not having to write a policy on this issue is an even greater 
benefit IMO.

> > In Subversion, the precise location of a file is constructed of two 
> > things: its location (path) in the repository and its revision number. 

> > Tagging just changes the path but cannot guarantee that the contents 
will 
> > always be the same and can be referred to in this way unambiguously. 
This 
> > only holds if you additionally count for the revision number.
> No, a Subversion "tag" is a point in time copy of a portion of the 
> repository.  In fact, a Subversion copy is a pointer to the exact node 
> that was the source at the point of the copy, and hence will never 
> change, no matter what happens to the source file over time.

Of course. "Tagging just changes the path" was too loosely describing the 
copy process. I wanted to make my point clear.

>  If you 
> treat your tag folder as write once (see below), you are guaranteed that 

> each tag will point to the exact set of files that it always did.

Well, then you need a policy that forbids creating tags with names 
reserved for future use. What would you do if someone accidentially 
creates a tag named "release-2.5.1" if should've been "release-2.4.1"? 
Then you have a useless nightmare of deactivating the hook script, 
changing the tag (renaming the directory) and re-activating the hook 
script.

Without this write-once policy I don't care about mistakes at tagging 
(besides reverting the mistake).

If someone wants to refer to a version of a tag (and IMHO he always has 
to), he just mentions the revision. So do the Subversion developers when 
they refer to specific versions of files on the SVN-head (trunk). And it's 
clear that creating separate tags for each commit to push the revision 
number as a reference to the background, is useless.

> 
> > "The issue is solved in rev. 105 of 
> > http://server/repos/tags/project-x-release5/"
> 
> Just be thankful that you can do it that way, too.

I am, that's why I'm _using_ Subversion and that's why I'm considering new 
features :-)

> In CVS, the only way 
> to refer to a set of files is by date or by tag (since the revision 
> numbers are file specific).  In order to completely define a set of 
> files in CVS, you'd have to list each file and that file's revision.

That's what you have to do if you don't trust tagging operations. We don't 
have to discuss CVS here, it was just an example. In CVS you can easily 
remove, rename or copy repository,v-files or directories (assuming file 
access to the repos) and break your complete history.

Even in Subversion, if you have to prove consistency (for example, if you 
make a document or build a binary), you have to show that you
* checked out the correct revision (not tag!), check "svn info" for top 
directory
* did not perform any modification to the files (not even updates to newer 
versions), check "svn status -v"
* and check that all versions of "svn status -v" have the same number as 
mentioned in "svn info" for the top directory.

... and a lot more. Consider certified products for automotive and 
airospace applications. If a plane gets down you don't want to be the one 
explaining why someone could change the tag you relied on to be static.

> Now, for the good news, although Subversion doesn't impose any specific 
> meaning to the tags/ folder for your project, that doesn't mean _you_ 
> can't.

well, another issue for me (no specific meaning of tags and branches), 
more on this next week ...

> Through the use of the pre-commit hook, you can make the /tags 
> directory for a project be write-once (you can create a new tag, but you 

> cannot rename a tag, nor change any files within that tag).
> I'm actually suprised that there isn't an example to do something this 
> included with the source.  I'm sure someone else has written something, 
> but if no one speaks up, I'll do it myself, and it'll be in Perl, just 
> to annoy the Python zealots... ;-)

Well, I am surprised to see so much information describing the behavior of 
a database is stored in unversioned, text-based files (hook-scripts, 
config files, access control). I think this topic requires a rewrite some 
day anyway ...

- Matthias

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

Re: Older versions through http-repository browsing

Posted by John Peacock <jp...@rowman.com>.
Matthias Wächter wrote:

> In CVS, if I tag a file (or a bunch of files) this operation is reversable 
> without any notice in the repository at all. Worse, a tag can be moved to 
> a different revision which makes such tagging rather useless from the 
> reproducibility perspective.

That's a carbon-based error; just because you /can/ remove a tag doesn't 
mean you /should/.  CVS doesn't prevent you from being stupid (to a 
large extent, neither does Subversion, but see below).  You have to have 
a policy to deal with how you handle exactly this kind of procedure. 
Unlike some large commercial CM systems, you are allowed to set your own 
procedure, rather than having to do things the way "they" decided was 
correct.  I view this as a benefit.

> In Subversion, the precise location of a file is constructed of two 
> things: its location (path) in the repository and its revision number. 
> Tagging just changes the path but cannot guarantee that the contents will 
> always be the same and can be referred to in this way unambiguously. This 
> only holds if you additionally count for the revision number.

No, a Subversion "tag" is a point in time copy of a portion of the 
repository.  In fact, a Subversion copy is a pointer to the exact node 
that was the source at the point of the copy, and hence will never 
change, no matter what happens to the source file over time.  If you 
treat your tag folder as write once (see below), you are guaranteed that 
each tag will point to the exact set of files that it always did.

> "The issue is solved in rev. 105 of 
> http://server/repos/tags/project-x-release5/"

Just be thankful that you can do it that way, too.  In CVS, the only way 
to refer to a set of files is by date or by tag (since the revision 
numbers are file specific).  In order to completely define a set of 
files in CVS, you'd have to list each file and that file's revision.

Now, for the good news, although Subversion doesn't impose any specific 
meaning to the tags/ folder for your project, that doesn't mean _you_ 
can't.  Through the use of the pre-commit hook, you can make the /tags 
directory for a project be write-once (you can create a new tag, but you 
cannot rename a tag, nor change any files within that tag).

I'm actually suprised that there isn't an example to do something this 
included with the source.  I'm sure someone else has written something, 
but if no one speaks up, I'll do it myself, and it'll be in Perl, just 
to annoy the Python zealots... ;-)

HTH

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748

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

Re: Older versions through http-repository browsing

Posted by Michael Sinz <mi...@gmail.com>.
On Fri, 04 Mar 2005 11:55:16 -0600, Brian W. Fitzpatrick
<fi...@collab.net> wrote:
> On Fri, 2005-03-04 at 18:22 +0100, Matthias Wächter wrote:
> 
> > Tell me what you think.
> 
> I think you're filibustering the dev list to add a feature to
> Subversion's core codebase that already exists in several Subversion
> add-ons.
> 
> Sure it's a bummer that it's not *exactly* what you want, but is it fair
> to expect us to make this change just to suit *you*?

Here , here.  Subversion is a tool that does what it is designed to do
and does so rather well.  There are a number of tools that provide the
feature you want.  Use them.  Or, if they don't match what you want,
write the one you want or hire someone to write the one you want.

Hey, some revision control systems also control the build process.
I do *not* want Subversion to grow build/make/ant features.  That is
what those tools are for.  The same goes for the repository browsing.

-- 
Michael Sinz               Technology and Engineering Director/Consultant
"Starting Startups"                          mailto:Michael.Sinz@sinz.org
My place on the web                      http://www.sinz.org/Michael.Sinz

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


Re: Older versions through http-repository browsing

Posted by Julian Reschke <ju...@gmx.de>.
Ben Collins-Sussman wrote:
> 
> On Mar 4, 2005, at 2:45 PM, Julian Reschke wrote:
> 
>>
>> Depends on what you understand by "work". Right now, 
>> <http://svn.collab.net/repos/svn/trunk> returns non-wellformed XML 
>> upon PROPFIND, so I wouldn't expect any generic client to work with it...
>>
> 
> Huh?  What's wrong with it?
> 
> I can fetch props with cadaver just fine:
> 
> $ ./cadaver http://svn.collab.net/repos/svn/
> dav:/repos/svn/> propget trunk
> Fetching properties for `trunk':
> ...

Extracted from the response body...:

<C:svk:merge>40bec6f9-eef0-0310-8400-9b45a50af7ca:/local/trunk:90
422c9f7f-73e9-0310-916f-f579f4d99a6a:/local/pool-cleanup:1951
ae6c956b-9dc6-0310-97b2-e73af4192982:/svn/local:8265
c9b7866f-f5e4-0310-b3ee-a2e1643c603f:/svn/local/new-auto-merge:10428</C:svk:merge>

See also: <http://subversion.tigris.org/issues/show_bug.cgi?id=1971>.

Best regards, Julian


-- 
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

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

Re: Older versions through http-repository browsing

Posted by Ben Collins-Sussman <su...@collab.net>.
On Mar 4, 2005, at 2:45 PM, Julian Reschke wrote:
>
> Depends on what you understand by "work". Right now, 
> <http://svn.collab.net/repos/svn/trunk> returns non-wellformed XML 
> upon PROPFIND, so I wouldn't expect any generic client to work with 
> it...
>

Huh?  What's wrong with it?

I can fetch props with cadaver just fine:

$ ./cadaver http://svn.collab.net/repos/svn/
dav:/repos/svn/> propget trunk
Fetching properties for `trunk':

ignore = ChangeLog*
Makefile
config.cache
config.log
config.nice
config.status
configure
libtool
*.orig
*.rej
TAGS
tags
neon
build-outputs.mk
autom4te.cache
gen-make.opts
tests.log
svn-config
db4-win32
db
*.o
*~
.*~
apr
apr-util
apr-iconv
Release
Debug
subversion_msvc.dsw
subversion_msvc.ncb
subversion_msvc.opt
subversion_msvc.plg

svk:merge = 40bec6f9-eef0-0310-8400-9b45a50af7ca:/local/trunk:90
422c9f7f-73e9-0310-916f-f579f4d99a6a:/local/pool-cleanup:1951
ae6c956b-9dc6-0310-97b2-e73af4192982:/svn/local:8265
c9b7866f-f5e4-0310-b3ee-a2e1643c603f:/svn/local/new-auto-merge:10428
resourcetype = <collection></collection>
getcontenttype = text/html
getetag = W/"13263//trunk"
creationdate = 2005-03-04T17:38:38.545795Z
getlastmodified = Fri, 04 Mar 2005 17:38:38 GMT
checked-in = <href>/repos/svn/!svn/ver/13263/trunk</href>
version-controlled-configuration = 
<href>/repos/svn/!svn/vcc/default</href>
version-name = 13263
creator-displayname = fitz
baseline-relative-path = trunk
repository-uuid = 65390229-12b7-0310-b90b-f21a5aa7ec8e
dav:/repos/svn/>


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

Re: Older versions through http-repository browsing

Posted by Julian Reschke <ju...@gmx.de>.
Greg Stein wrote:
> On Fri, Mar 04, 2005 at 09:45:04PM +0100, Julian Reschke wrote:
> 
>>...
>>
>>>That work with Subversion?
>>
>>Depends on what you understand by "work". Right now, 
>><http://svn.collab.net/repos/svn/trunk> returns non-wellformed XML upon 
>>PROPFIND, so I wouldn't expect any generic client to work with it...
> 
> 
> You know, Julian... it would be *very* helpful if you'd stop with these
> cryptic replies.
> 
> The first one, in response to DeltaV clients, you simply replied "yes".
> Meaning that somebody would then have to go and send another email to ask
> you to list the clients. And then you'd have to go and write that email.

OK, sorry. I thought that by now people are aware that these clients 
(and servers!) exist. It's not the first time I'm mentioning this, 
usually after somebody claims that there aren't any :-).

> And now you say that the XML is not well-formed. I'm assuming you mean in
> response to PROPFIND. But you don't say anything further. And now you make
> somebody (like me) have to go and write an email asking you to explain.
> 
> These drive-by little teaser notes are annoying.

Again, that's the well-known two-colons-in-a-property-name issue. It's 
in the bug tracker, and I have complained about it numerous times. I 
think by now this issue is over a year old.

Best regards, Julian

-- 
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

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

[OT] Re: Older versions through http-repository browsing

Posted by Florin Iucha <fl...@iucha.net>.
On Fri, Mar 04, 2005 at 12:43:14PM -0800, Greg Stein wrote:
> On Fri, Mar 04, 2005 at 09:45:04PM +0100, Julian Reschke wrote:
> >...
> > >That work with Subversion?
> > 
> > Depends on what you understand by "work". Right now, 
> > <http://svn.collab.net/repos/svn/trunk> returns non-wellformed XML upon 
> > PROPFIND, so I wouldn't expect any generic client to work with it...
> 
> You know, Julian... it would be *very* helpful if you'd stop with these
> cryptic replies.
> 
> The first one, in response to DeltaV clients, you simply replied "yes".
> Meaning that somebody would then have to go and send another email to ask
> you to list the clients. And then you'd have to go and write that email.
> 
> And now you say that the XML is not well-formed. I'm assuming you mean in
> response to PROPFIND. But you don't say anything further. And now you make
> somebody (like me) have to go and write an email asking you to explain.

I can't help but make an analogy between this sub-discussion and
the "benefits" of the "generic" DeltaV protocol. What people want is
direct access, and what they get is a way to hold a conversation.

Annoying, indeed 8^)

florin

-- 

Don't question authority: they don't know either!

Re: Older versions through http-repository browsing

Posted by Greg Stein <gs...@lyra.org>.
On Fri, Mar 04, 2005 at 09:45:04PM +0100, Julian Reschke wrote:
>...
> >That work with Subversion?
> 
> Depends on what you understand by "work". Right now, 
> <http://svn.collab.net/repos/svn/trunk> returns non-wellformed XML upon 
> PROPFIND, so I wouldn't expect any generic client to work with it...

You know, Julian... it would be *very* helpful if you'd stop with these
cryptic replies.

The first one, in response to DeltaV clients, you simply replied "yes".
Meaning that somebody would then have to go and send another email to ask
you to list the clients. And then you'd have to go and write that email.

And now you say that the XML is not well-formed. I'm assuming you mean in
response to PROPFIND. But you don't say anything further. And now you make
somebody (like me) have to go and write an email asking you to explain.

These drive-by little teaser notes are annoying.

-g

-- 
Greg Stein, http://www.lyra.org/

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

Re: Older versions through http-repository browsing

Posted by Julian Reschke <ju...@gmx.de>.
Brian W. Fitzpatrick wrote:
> On Fri, 2005-03-04 at 20:14 +0100, Julian Reschke wrote:
> 
>>Brian W. Fitzpatrick wrote:
>>
>>>>There's nothing to write.  Here's version 1000 of README:
>>>>
>>>>   http://svn.collab.net/repos/svn/!svn/bc/1000/trunk/README
>>>>
>>>>Just put a "/!svn/bc/REV/" between the repository name and the start of 
>>>>the absolute path within the repository.
>>>
>>>
>>>Yes, but that URL is a private API.  We can change it at *any* time and
>>>never break an svn client (or existing working copy).
>>>
>>>Of course, if we did change that, we'd break other DeltaV clients... but
>>>wait!  There are no other DeltaV clients!
>>
>>Yes, there are.
> 
> 
> That work with Subversion?

Depends on what you understand by "work". Right now, 
<http://svn.collab.net/repos/svn/trunk> returns non-wellformed XML upon 
PROPFIND, so I wouldn't expect any generic client to work with it...

Best regards, Julian

-- 
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

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

Re: Older versions through http-repository browsing

Posted by Julian Reschke <ju...@gmx.de>.
Brian W. Fitzpatrick wrote:
> On Fri, 2005-03-04 at 20:14 +0100, Julian Reschke wrote:
> 
>>Brian W. Fitzpatrick wrote:
>>
>>>>There's nothing to write.  Here's version 1000 of README:
>>>>
>>>>   http://svn.collab.net/repos/svn/!svn/bc/1000/trunk/README
>>>>
>>>>Just put a "/!svn/bc/REV/" between the repository name and the start of 
>>>>the absolute path within the repository.
>>>
>>>
>>>Yes, but that URL is a private API.  We can change it at *any* time and
>>>never break an svn client (or existing working copy).
>>>
>>>Of course, if we did change that, we'd break other DeltaV clients... but
>>>wait!  There are no other DeltaV clients!
>>
>>Yes, there are.
> 
> 
> That work with Subversion?

OK, sorry for the delay.

I just tried the Xythos client against 
<http://svn.webdav.org/repos/projects/subwiki/trunk/>.

Showing the version history fails, because the client relies on support 
for DeltaV Version History feature (see 
<http://greenbytes.de/tech/webdav/rfc3253.html#version-history.feature>).

In a perfect world clients would be smart enough to try the DeltaV 
version-tree report instead (see 
<http://greenbytes.de/tech/webdav/rfc3253.html#REPORT_version-tree>), 
but as far as I can tell, SVN doesn't support that either. Checking live 
properties, I also see that SVN doesn't support RFC3253's required 
properties such as DAV:supported-report-set and friends.

So no, it doesn't do any versioning with SVN, but I'd say that is not 
the client's fault.


Best regards, Julian

-- 
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

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

Re: Older versions through http-repository browsing

Posted by "Brian W. Fitzpatrick" <fi...@collab.net>.
On Fri, 2005-03-04 at 20:14 +0100, Julian Reschke wrote:
> Brian W. Fitzpatrick wrote:
> >>There's nothing to write.  Here's version 1000 of README:
> >>
> >>    http://svn.collab.net/repos/svn/!svn/bc/1000/trunk/README
> >>
> >>Just put a "/!svn/bc/REV/" between the repository name and the start of 
> >>the absolute path within the repository.
> > 
> > 
> > Yes, but that URL is a private API.  We can change it at *any* time and
> > never break an svn client (or existing working copy).
> > 
> > Of course, if we did change that, we'd break other DeltaV clients... but
> > wait!  There are no other DeltaV clients!
> 
> Yes, there are.

That work with Subversion?

-Fitz


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

Re: Older versions through http-repository browsing

Posted by Julian Reschke <ju...@gmx.de>.
Ben Collins-Sussman wrote:
> 
> On Mar 4, 2005, at 1:14 PM, Julian Reschke wrote:
> 
>> Brian W. Fitzpatrick wrote:
>>
>>>> There's nothing to write.  Here's version 1000 of README:
>>>>
>>>>    http://svn.collab.net/repos/svn/!svn/bc/1000/trunk/README
>>>>
>>>> Just put a "/!svn/bc/REV/" between the repository name and the start 
>>>> of the absolute path within the repository.
>>>
>>> Yes, but that URL is a private API.  We can change it at *any* time and
>>> never break an svn client (or existing working copy).
>>> Of course, if we did change that, we'd break other DeltaV clients... but
>>> wait!  There are no other DeltaV clients!
>>
>>
>> Yes, there are.
>>
>>
> 
> You're teasing us.  :-)
> 
> All I can see on www.webdav.org is "ObeDAV".  Can you point us to any 
> other deltaV clients?  Either open or closed source?  I'd love to toy 
> with them.

a) Xythos <http://www.xythos.com/home/xythos/products/products_wfc.html>

b) SAP Netweaver's WebDAV Repository Manager

c) XMLSpy

and probably some more...



-- 
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

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

Re: Older versions through http-repository browsing

Posted by Ben Collins-Sussman <su...@collab.net>.
On Mar 4, 2005, at 1:14 PM, Julian Reschke wrote:

> Brian W. Fitzpatrick wrote:
>>> There's nothing to write.  Here's version 1000 of README:
>>>
>>>    http://svn.collab.net/repos/svn/!svn/bc/1000/trunk/README
>>>
>>> Just put a "/!svn/bc/REV/" between the repository name and the start 
>>> of the absolute path within the repository.
>> Yes, but that URL is a private API.  We can change it at *any* time 
>> and
>> never break an svn client (or existing working copy).
>> Of course, if we did change that, we'd break other DeltaV clients... 
>> but
>> wait!  There are no other DeltaV clients!
>
> Yes, there are.
>
>

You're teasing us.  :-)

All I can see on www.webdav.org is "ObeDAV".  Can you point us to any 
other deltaV clients?  Either open or closed source?  I'd love to toy 
with them.


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

Re: Older versions through http-repository browsing

Posted by Julian Reschke <ju...@gmx.de>.
Brian W. Fitzpatrick wrote:
>>There's nothing to write.  Here's version 1000 of README:
>>
>>    http://svn.collab.net/repos/svn/!svn/bc/1000/trunk/README
>>
>>Just put a "/!svn/bc/REV/" between the repository name and the start of 
>>the absolute path within the repository.
> 
> 
> Yes, but that URL is a private API.  We can change it at *any* time and
> never break an svn client (or existing working copy).
> 
> Of course, if we did change that, we'd break other DeltaV clients... but
> wait!  There are no other DeltaV clients!

Yes, there are.


Best regards, Julian

-- 
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

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

Re: Older versions through http-repository browsing

Posted by Matthias Waechter <Ma...@tttech.com>.
Brian,

"Brian W. Fitzpatrick" <fi...@collab.net> wrote on 04.03.2005 20:09:38:

> > Just put a "/!svn/bc/REV/" between the repository name and the start 
of 
> > the absolute path within the repository.
> 
> Yes, but that URL is a private API.  We can change it at *any* time and
> never break an svn client (or existing working copy).

Ok, but why not make it public anyway? I mean, you change a lot of things 
here and there, command line switches and such, and assume that the user 
is capable of knowing how to upgrade (and why he will not want to upgrade 
in all circumstances). Just because WebDAV requires the ping pong play of 
fetching the private path _allowing_ private revision number 
encapsulation?

- Matthias

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

Re: Older versions through http-repository browsing

Posted by "Brian W. Fitzpatrick" <fi...@collab.net>.
On Fri, 2005-03-04 at 12:56 -0600, Ben Collins-Sussman wrote:
> On Mar 4, 2005, at 12:41 PM, Matthias Waechter wrote:
> 
> > Brian,
> >
> > "Brian W. Fitzpatrick" <fi...@collab.net> wrote on 04.03.2005 18:55:16:
> >
> >> I think you're filibustering the dev list to add a feature to
> >> Subversion's core codebase that already exists in several Subversion
> >> add-ons.
> >
> > Well, then, maybe I have to write it myself and for myself only.
> 
> There's nothing to write.  Here's version 1000 of README:
> 
>     http://svn.collab.net/repos/svn/!svn/bc/1000/trunk/README
> 
> Just put a "/!svn/bc/REV/" between the repository name and the start of 
> the absolute path within the repository.

Yes, but that URL is a private API.  We can change it at *any* time and
never break an svn client (or existing working copy).

Of course, if we did change that, we'd break other DeltaV clients... but
wait!  There are no other DeltaV clients!

-Fitz


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

Re: Older versions through http-repository browsing

Posted by Mark Phippard <Ma...@softlanding.com>.
Matthias Waechter <Ma...@tttech.com> wrote on 03/04/2005 
02:29:38 PM:

> I think a mixture of your suggestions will make it for me: A rewrite 
rule 
> rewriting to the not-yet-maybe-never-public "!svn/bc/<REV>" syntax.
> 
> Thanks for your input!
> 
> btw: I tried the svn CLI checking out a repos including the 
> "!svn/bc/<REV>" instead of using the separate -r switch. It didn't work, 

> of course. Too much to hope ;-)

FWIW,

svn cat http://svn.collab.net/repos/svn/!svn/bc/1000/trunk/README

Worked for me, which is the real analogue to what the browser is doing.

Mark 

_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. by IBM Email Security Management Services powered by MessageLabs. 
_____________________________________________________________________________

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

Re: Older versions through http-repository browsing

Posted by Mark Phippard <Ma...@softlanding.com>.
Matthias Waechter <Ma...@tttech.com> wrote on 03/04/2005 
02:29:38 PM:

> Ben, Toby,
> 
> I think a mixture of your suggestions will make it for me: A rewrite 
rule 
> rewriting to the not-yet-maybe-never-public "!svn/bc/<REV>" syntax.
> 
> Thanks for your input!
> 
> btw: I tried the svn CLI checking out a repos including the 
> "!svn/bc/<REV>" instead of using the separate -r switch. It didn't work, 

> of course. Too much to hope ;-)

Disregard my last message. 

While svn cat does return something, it returns the current version of the 
file, not the on at r1000!

Mark


_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. by IBM Email Security Management Services powered by MessageLabs. 
_____________________________________________________________________________

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

Re: Older versions through http-repository browsing

Posted by Matthias Waechter <Ma...@tttech.com>.
Ben, Toby,

I think a mixture of your suggestions will make it for me: A rewrite rule 
rewriting to the not-yet-maybe-never-public "!svn/bc/<REV>" syntax.

Thanks for your input!

btw: I tried the svn CLI checking out a repos including the 
"!svn/bc/<REV>" instead of using the separate -r switch. It didn't work, 
of course. Too much to hope ;-)

- Matthias

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

Re: Older versions through http-repository browsing

Posted by Ben Collins-Sussman <su...@collab.net>.
On Mar 4, 2005, at 12:41 PM, Matthias Waechter wrote:

> Brian,
>
> "Brian W. Fitzpatrick" <fi...@collab.net> wrote on 04.03.2005 18:55:16:
>
>> I think you're filibustering the dev list to add a feature to
>> Subversion's core codebase that already exists in several Subversion
>> add-ons.
>
> Well, then, maybe I have to write it myself and for myself only.

There's nothing to write.  Here's version 1000 of README:

    http://svn.collab.net/repos/svn/!svn/bc/1000/trunk/README

Just put a "/!svn/bc/REV/" between the repository name and the start of 
the absolute path within the repository.


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

Re: Older versions through http-repository browsing

Posted by Matthias Waechter <Ma...@tttech.com>.
Brian,

"Brian W. Fitzpatrick" <fi...@collab.net> wrote on 04.03.2005 18:55:16:

> I think you're filibustering the dev list to add a feature to
> Subversion's core codebase that already exists in several Subversion
> add-ons. 

Well, then, maybe I have to write it myself and for myself only. Thought 
talking about it a little bit would gain at least some sympathy for the 
issue.

> Sure it's a bummer that it's not *exactly* what you want, but is it fair
> to expect us to make this change just to suit *you*? 

I know that currently, it's only me asking for this feature. Maybe others 
have asked already (on this list, on irc, wherever) and were given the 
same answer or gave up evaluating Subversion just for that issue. Maybe 
others start thinking about it because I raised the issue.

And: I'm not expecting you to make the change (if you don't want to, of 
course :-)). I'm discussing the topic to clearify (read my first mail 
again) issues related to which software might be blocking/disliking the 
?r= parameters and which specification disallows this or that.

I understand your point as well: I know how important it is to 
block/postpone new features for a product that has enough work to 
implement for ages.

- Matthias

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

Re: Older versions through http-repository browsing

Posted by "Brian W. Fitzpatrick" <fi...@collab.net>.
On Fri, 2005-03-04 at 18:22 +0100, Matthias Wächter wrote:

> Tell me what you think.

I think you're filibustering the dev list to add a feature to
Subversion's core codebase that already exists in several Subversion
add-ons.  

Sure it's a bummer that it's not *exactly* what you want, but is it fair
to expect us to make this change just to suit *you*?  

-Fitz


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

Re: Older versions through http-repository browsing

Posted by Matthias Wächter <Ma...@tttech.com>.
John,

I see your point in explaining how CVS branching and its relation to the 
dot-dotting, that's not new for me.

In CVS, if I tag a file (or a bunch of files) this operation is reversable 
without any notice in the repository at all. Worse, a tag can be moved to 
a different revision which makes such tagging rather useless from the 
reproducibility perspective.

In Subversion, a tag can be moved or removed as well, but I can always 
reconstruct an overwritten directory, whether it is in /trunk or /tags.

In Subversion, the precise location of a file is constructed of two 
things: its location (path) in the repository and its revision number. 
Tagging just changes the path but cannot guarantee that the contents will 
always be the same and can be referred to in this way unambiguously. This 
only holds if you additionally count for the revision number.

So: It's not enough to mention the more-or-less literal tag. If you 
consider arbitrary repository operation (excluding dumpfilter, property 
changes of elder versions or other repository destruction) you always have 
to consider that a tag or branch is removed (not appropriate anymore), 
renamed (restructuring maybe) or re-created (similar bug, next attempt to 
fix it). When I describe a tag in a documentation, I always (have to) give 
the revision as well:

"The issue is solved in rev. 105 of 
http://server/repos/tags/project-x-release5/"

Sparing the revision number when referring to it, like in this statement, 
makes it nothing better than CVS' tagging like "the tag may be there and 
may be the same - bet on it!"

Tell me what you think.

- Matthias

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

Re: Older versions through http-repository browsing

Posted by John Peacock <jp...@rowman.com>.
Matthias Wächter wrote:

> Will the principle of Subversion, to use global integer revision numbers 
> instead of local dotted ones (like in CVS) ever change? 

The revision number is merely an artifact of the internal repository 
state.  NOTE: I do not differentiate CVS from Subversion here.  It just 
so happens that with CVS, as long as you never strayed from the trunk, 
you could use the $Revision$ tag like it was a file version for release 
purposes.  When you go off onto trunks, the numbers don't increment like 
you would expect them to do so (if they were actually human version 
numbers).  Try making two branches off the same revision and commit 
changes in CVS; you'll get something that looks like 1.4.2.1 and 1.4.4.1 
(if the trunk was at 1.4).  Then try and perform a vendor import (and 
suddenly your initial revision digit jumps to 2).

Just stop thinking that the revision numbers are significant in any way 
outside of a point in time in the repository (whether you are using CVS 
or SVN), and you will be happier in the long run.  Version numbers are a 
human-significant value and are best handled using tags (again for both 
packages) to denote what point they reflect in the repository.

John

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

Re: Older versions through http-repository browsing

Posted by Greg Stein <gs...@lyra.org>.
On Fri, Mar 04, 2005 at 03:53:44PM -0600, Brian W. Fitzpatrick wrote:
>...
> I'm still -1 on declaring support for this URL style as a "public API",
> for the following reasons:

Fair enough. I'm -0 on it, myself, mostly for the reasons you list. I just
wanted to describe a solution that wouldn't get a -1 from me :-)  You know
how much of a stickler I am for those repository URLs...

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

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

Re: Older versions through http-repository browsing

Posted by "Brian W. Fitzpatrick" <fi...@collab.net>.
On Fri, 2005-03-04 at 13:10 -0800, Greg Stein wrote:

...

> But, as we discussed in IM, there is a middle ground here. While we still
> don't want to expose "!svn/bc/NNNN/" in any way (in case we need to change
> it later), we *can* expose "!svn/rev/NNNN/" and just define that tree as a
> revision tree for *servers* to use.
> 
> Note that I say servers. Clients cannot assume that path construction. Any
> given server might change the "!svn" portion.
> 
> But for rewrite tools, CGIs, etc, it is quite possible to build a tool
> around ".../rev/NNNN/". Since the CGI or other tool is installed by the
> server admin, who also controls the special URI prefix, then they can all
> be coordinated.
> 
> The changes to mod_dav_svn should be minimal. In repos.c, there is a
> special_subdirs[] array. Copy/paste the { "bc", ... } section and rewrite
> it to "rev". That should be it. If we ever need to change the "bc" stuff,
> then it will get more complicated, but until then, the two are precisely
> the same.

I'm still -1 on declaring support for this URL style as a "public API",
for the following reasons:

1. It's a feature that is currently available with Subversion add-ons
(ViewCVS, etc).

2. It would need to be carefully documented.

3. As Mark Phippard just discovered, using the URLs with the svn client
"works", but always returns the HEAD revision (in his example, he tried
'svn cat http://svn.collab.net/repos/svn/!svn/bc/1000/trunk/README') and
the results were unexpected.  So the moment we decide to suppor the
above URL style as Public API, we'll need to fix that bug.  And even if
we document that this URL style is *only* for use in web browsers,
people *will* use it with the command-line svn.  I think it will cause
confusion.

Basically, I'm asking folks to think very carefully about any new
features that we add to core Subversion (and yes, declaring this as
public and supported *is* a new feature) as there is a cost to doing so
beyond just the minimal fix to repos.c that Greg mentioned.

-Fitz



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

Re: Older versions through http-repository browsing

Posted by Greg Stein <gs...@lyra.org>.
On Fri, Mar 04, 2005 at 03:31:22PM -0600, Ben Collins-Sussman wrote:
> 
> On Mar 4, 2005, at 3:10 PM, Greg Stein wrote:
> >
> >Note that I say servers. Clients cannot assume that path construction. 
> >Any given server might change the "!svn" portion.
> 
> Well, we can still advertise the feature to clients as:
> 
> "Revisions can be browsed at FOO/tree/REV/, where REV is a revision 
> number, and FOO is the reserved mod_dav_svn namespace.  FOO normally 
> defaults to "!svn", but adminstrators can change that by setting the 
> SVNSpecialURI directive."
> 
> ...right?

Yes, we can. Personally, I might be a bit more comfortable with more text
along the lines of "make sure your client allows FOO to be configurable"
or somesuch. *shrug* I think it will make little practical difference, but
that's just me.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

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

Re: Older versions through http-repository browsing

Posted by Ben Collins-Sussman <su...@collab.net>.
On Mar 4, 2005, at 3:10 PM, Greg Stein wrote:
>
> Note that I say servers. Clients cannot assume that path construction. 
> Any
> given server might change the "!svn" portion.

Well, we can still advertise the feature to clients as:

"Revisions can be browsed at FOO/tree/REV/, where REV is a revision 
number, and FOO is the reserved mod_dav_svn namespace.  FOO normally 
defaults to "!svn", but adminstrators can change that by setting the 
SVNSpecialURI directive."

...right?

> The changes to mod_dav_svn should be minimal. In repos.c, there is a
> special_subdirs[] array. Copy/paste the { "bc", ... } section and 
> rewrite
> it to "rev". That should be it. If we ever need to change the "bc" 
> stuff,
> then it will get more complicated, but until then, the two are 
> precisely
> the same.
>

Will do.


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

Re: Older versions through http-repository browsing

Posted by kf...@collab.net.
Duh -- sorry, of course that was a braino, I didn't really mean that
svnserve would start supporting HTTP.  All that's needed is
mod_dav_svn support below.  Sorry for the confusion.

-K

kfogel@collab.net writes:
> Why don't we just implement server-side support for the trailing
> "@NNN" syntax already supported by the client?  This would be in both
> mod_dav_svn and svnserve.  We already have an elegant escaping
> mechanism for it, too, for paths that contain @-signs.
> 
> All of this is already documented for the client, and (obviously) it's
> best if the client-side syntax is the same as the browser syntax.  It
> shouldn't be hard to implement in the servers.
> 
> Am I missing something, or would this solve our problem totally?
> 
> By the way, this thread is very old and large, more than 50 messages.
> In case anyone wants to review the past conversation (as I just did),
> here is its URL:
> 
> http://subversion.tigris.org/servlets/BrowseList?list=dev&by=thread&from=298934
> 
> -Karl
> 
> -- 
> www.collab.net  <>  CollabNet  |  Distributed Development On Demand
> 
> ---------------------------------------------------------------------
> 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

Re: Older versions through http-repository browsing

Posted by Branko Čibej <br...@xbc.nu>.
C. Michael Pilato wrote:

>Nonono.  Please *do not* do this to public URL namespace.
>
*shudder*
Yes, what a horrible idea that is.


>I much prefer the !svn/rev/NNNNN/path syntax, because besides not
>destroying the integrity of our existing URL namespace (...), it allows for relative URLs in HTML documents served
>directory from mod_dav_svn to continue to work.
>
+1.

And -1 on the other proposal.

-- Brane


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

Re: Older versions through http-repository browsing

Posted by kf...@collab.net.
kfogel@collab.net writes:
> I do think browsers and clients need to support the same syntax.  It
> would just be ridiculous for people not to be able to cut-and-paste
> between the two contexts.

Well, I guess if the server supports it, the client automatically does
(esp. if the server handles the escape-syntax itself anyway).


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

Re: Older versions through http-repository browsing

Posted by Ben Collins-Sussman <su...@collab.net>.
C. Michael Pilato wrote:
> Ben Collins-Sussman <su...@collab.net> writes:
> 
> 
>>The problem we had before was people becoming familiar
>>"!svn/bc/REV/path" after using it in a web browser for a while... and
>>then they'd go and use the same URL with 'svn cat' and get errors.
>>Then we'd hear complaints.
>>
>>Should we just ignore this problem?   Is it a non-problem?  Or is
>>there just no acceptable solution to it?
> 
> 
> What problem?  ;-)
> 

Oy



-- 
www.collab.net  <>  CollabNet  |  Distributed Development On Demand

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

Re: Older versions through http-repository browsing

Posted by "C. Michael Pilato" <cm...@collab.net>.
Ben Collins-Sussman <su...@collab.net> writes:

> The problem we had before was people becoming familiar
> "!svn/bc/REV/path" after using it in a web browser for a while... and
> then they'd go and use the same URL with 'svn cat' and get errors.
> Then we'd hear complaints.
> 
> Should we just ignore this problem?   Is it a non-problem?  Or is
> there just no acceptable solution to it?

What problem?  ;-)

-- 
www.collab.net  <>  CollabNet  |  Distributed Development On Demand

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

Re: Older versions through http-repository browsing

Posted by Ben Collins-Sussman <su...@collab.net>.
> I'd much rather just let 'svn info' reveal the "!svn/bc/" URL for a
> resource (especially now that it accepts public @-syntax URLs as
> input) and let people copy *that* and paste it into their browser than
> to have our server (which, by the way, has an open network protocol
> that anyone can use, as has been demonstrated by the likes of JavaSVN)
> complexify its very simple public URL schema and require all clients
> of mod_dav_svn to know about those intricacies.
> 


The problem we had before was people becoming familiar 
"!svn/bc/REV/path" after using it in a web browser for a while... and 
then they'd go and use the same URL with 'svn cat' and get errors.  Then 
we'd hear complaints.

Should we just ignore this problem?   Is it a non-problem?  Or is there 
just no acceptable solution to it?



-- 
www.collab.net  <>  CollabNet  |  Distributed Development On Demand

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

Re: Older versions through http-repository browsing

Posted by "C. Michael Pilato" <cm...@collab.net>.
Branko Čibej <br...@xbc.nu> writes:

> kfogel@collab.net wrote:
> 
> >"C. Michael Pilato" <cm...@collab.net> writes:
> >
> >>Nonono.  Please *do not* do this to public URL namespace.  It's one
> >>thing to bind revision numbers to URLs in our command-line client
> >>syntax for the sake of UI and path/rev association simplicity (and
> >>yes, remember that this URL@REV syntax is not Subversion-wide -- it's
> >>only in our one little commandline client).  But this change has no
> >>place trickling into mod_dav_svn.
> >>
> >
> >Uh, why not make any such syntax Subversion-wide?  I mean, this
> >is... Subversion, after all :-).
> >
> Hah. So why don't we support bugtraq properties in the command-line
> client? TSVN does, and it's Subversion, after all ... :)

Besides that somewhat irrelevant bit of trivia (sorry, Brane), it's
entirely unnecessary for clients with UIs more conducive to visual
association between a URL (or path) and a revision number.  Again, the
reason that we have an @-syntax *at all* is because command-line
interfaces have inherent limitations in terms of item associations.
It's a one-dimension layout, where the ideal situation for mapping
sets of URLs to sets of revisions is (obviously) a two-dimensional
grid.

I just don't think this is a wise instance of trying to code for the
lowest common denominator.  Subversion is a version control system
with multiple RA interfaces.  That one of them happens to work okey
dokey sorta kinda in a web browser is a major benefit to users of that
particular RA layer.  But with the exception of the
'!svn-in-the-root-dir' limitation noted by Brane, we already have a
syntax, albeit "private", for accessing every version of every
versioned thing.

I'd much rather just let 'svn info' reveal the "!svn/bc/" URL for a
resource (especially now that it accepts public @-syntax URLs as
input) and let people copy *that* and paste it into their browser than
to have our server (which, by the way, has an open network protocol
that anyone can use, as has been demonstrated by the likes of JavaSVN)
complexify its very simple public URL schema and require all clients
of mod_dav_svn to know about those intricacies.

-- 
www.collab.net  <>  CollabNet  |  Distributed Development On Demand

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


Re: Older versions through http-repository browsing

Posted by Branko Čibej <br...@xbc.nu>.
kfogel@collab.net wrote:

>"C. Michael Pilato" <cm...@collab.net> writes:
>  
>
>>Nonono.  Please *do not* do this to public URL namespace.  It's one
>>thing to bind revision numbers to URLs in our command-line client
>>syntax for the sake of UI and path/rev association simplicity (and
>>yes, remember that this URL@REV syntax is not Subversion-wide -- it's
>>only in our one little commandline client).  But this change has no
>>place trickling into mod_dav_svn.
>>    
>>
>
>Uh, why not make any such syntax Subversion-wide?  I mean, this
>is... Subversion, after all :-).
>  
>
Hah. So why don't we support bugtraq properties in the command-line 
client? TSVN does, and it's Subversion, after all ... :)

>If we're going to go with a prefix syntax, in order to support
>relative URLs, what is the quoting mechanism?  Is it to specify HEAD
>or a revnum in a prior prefix, like this?:
>
>   http://.../!svn/HEAD/!svn/4500/index.html
>   http://.../!svn/1729/!svn/4500/index.html
>
>This would access either HEAD or r1729 of a file whose literal path is
>"/!svn/4500/index.html".
>  
>
If you have a directory called !svn at the root of your repository, 
browsing will most likely not work. This has been a limitation for a 
long, long time.

-- Brane


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

Re: Older versions through http-repository browsing

Posted by kf...@collab.net.
"C. Michael Pilato" <cm...@collab.net> writes:
> Nonono.  Please *do not* do this to public URL namespace.  It's one
> thing to bind revision numbers to URLs in our command-line client
> syntax for the sake of UI and path/rev association simplicity (and
> yes, remember that this URL@REV syntax is not Subversion-wide -- it's
> only in our one little commandline client).  But this change has no
> place trickling into mod_dav_svn.

Uh, why not make any such syntax Subversion-wide?  I mean, this
is... Subversion, after all :-).

> I much prefer the !svn/rev/NNNNN/path syntax, because besides not
> destroying the integrity of our existing URL namespace (what happens
> if you have a file with '@[0-9]+' at the end of it under version
> control?), 

Like I said, the same quoting mechanism would work as we currently use
for the client: tack on an empty "@", which means "@HEAD", or if you
want a particular revision, tack on "@NNN".

The quoting is a *solved* problem.  That remains true if we start
using this syntax in more places.

> it allows for relative URLs in HTML documents served
> directory from mod_dav_svn to continue to work.  An index.html with a
> URL of http://.../!svn/4500/index.html can reference "./logo.png" and
> the browser will know to use http://.../!svn/4500/logo.png to fetch
> that image.

The breaking of relative URLs is a valid objection, yeah.  Thanks, I'd
forgotten about that one.

I do think browsers and clients need to support the same syntax.  It
would just be ridiculous for people not to be able to cut-and-paste
between the two contexts.

This would imply that servers too should support the trailing-"@"
syntax, but that there should also be *another* syntax available to
both clients and servers (which is yucky, I freely confess, but maybe
not as yucky as not having the feature).

If we're going to go with a prefix syntax, in order to support
relative URLs, what is the quoting mechanism?  Is it to specify HEAD
or a revnum in a prior prefix, like this?:

   http://.../!svn/HEAD/!svn/4500/index.html
   http://.../!svn/1729/!svn/4500/index.html

This would access either HEAD or r1729 of a file whose literal path is
"/!svn/4500/index.html".

Do we want "!svn", or maybe "!rev" to be clearer?  Or "@rev"??

-Karl


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

Re: Older versions through http-repository browsing

Posted by "C. Michael Pilato" <cm...@collab.net>.
Ben Collins-Sussman <su...@collab.net> writes:

> On Aug 23, 2005, at 2:30 PM, kfogel@collab.net wrote:
> >
> > Am I missing something, or would this solve our problem totally?
> 
> 
> When folks pointed out that mod_dav_svn already has a 'private'
> syntax for version-urls (!svn/bc/NNNNN/path), Greg Stein's reaction
> was, "hey, let's just make a public variant of that syntax -- !svn/
> rev/NNNNN/path -- it's a one line code change.  And we can promise to
> never change it."
> 
> But I like Karl's "path@REV" syntax proposal better, because
> 
>    1. it's easier to remember.
> 
>    2. it matches the existing svn commandline syntax.
> 
> 
> The great thing about #2 is that it prevents confusion.  In earlier
> threads, there was confusion about people typing "http://host/repos/!
> svn/bc/NNNNN/path" in their web browser, and then going to the prompt
> and feeding the same URL to 'svn cat'.  We want to avoid such mix-
> ups.  Having identical syntax avoids the confusion.

Nonono.  Please *do not* do this to public URL namespace.  It's one
thing to bind revision numbers to URLs in our command-line client
syntax for the sake of UI and path/rev association simplicity (and
yes, remember that this URL@REV syntax is not Subversion-wide -- it's
only in our one little commandline client).  But this change has no
place trickling into mod_dav_svn.

I much prefer the !svn/rev/NNNNN/path syntax, because besides not
destroying the integrity of our existing URL namespace (what happens
if you have a file with '@[0-9]+' at the end of it under version
control?), it allows for relative URLs in HTML documents served
directory from mod_dav_svn to continue to work.  An index.html with a
URL of http://.../!svn/4500/index.html can reference "./logo.png" and
the browser will know to use http://.../!svn/4500/logo.png to fetch
that image.

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

Re: Older versions through http-repository browsing

Posted by Ben Collins-Sussman <su...@collab.net>.
On Aug 23, 2005, at 2:30 PM, kfogel@collab.net wrote:
>
> Am I missing something, or would this solve our problem totally?


When folks pointed out that mod_dav_svn already has a 'private'  
syntax for version-urls (!svn/bc/NNNNN/path), Greg Stein's reaction  
was, "hey, let's just make a public variant of that syntax -- !svn/ 
rev/NNNNN/path -- it's a one line code change.  And we can promise to  
never change it."

But I like Karl's "path@REV" syntax proposal better, because

   1. it's easier to remember.

   2. it matches the existing svn commandline syntax.


The great thing about #2 is that it prevents confusion.  In earlier  
threads, there was confusion about people typing "http://host/repos/! 
svn/bc/NNNNN/path" in their web browser, and then going to the prompt  
and feeding the same URL to 'svn cat'.  We want to avoid such mix- 
ups.  Having identical syntax avoids the confusion.


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

Re: Older versions through http-repository browsing

Posted by kf...@collab.net.
Branko Čibej <br...@xbc.nu> writes:
> solo turn wrote:
> 
> >sorry for beeing unclear before. i did want to write that the standard
> >should include a unique  method of retrieving versions, and not leave
> >it to the server. and i'm still wondering what drawbacks this could
> >have - personally i do not see any for such a simple and natural
> >problem. for me its something like "leave the url syntax to be defined
> >by the server" for http servers.
>
> Well, I can only suggest that you start the process for revising the
> current WebDAV/DeltaV RFC.

Why don't we just implement server-side support for the trailing
"@NNN" syntax already supported by the client?  This would be in both
mod_dav_svn and svnserve.  We already have an elegant escaping
mechanism for it, too, for paths that contain @-signs.

All of this is already documented for the client, and (obviously) it's
best if the client-side syntax is the same as the browser syntax.  It
shouldn't be hard to implement in the servers.

Am I missing something, or would this solve our problem totally?

By the way, this thread is very old and large, more than 50 messages.
In case anyone wants to review the past conversation (as I just did),
here is its URL:

http://subversion.tigris.org/servlets/BrowseList?list=dev&by=thread&from=298934

-Karl

-- 
www.collab.net  <>  CollabNet  |  Distributed Development On Demand

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


Re: Older versions through http-repository browsing

Posted by Julian Reschke <ju...@gmx.de>.
Branko Čibej wrote:
> solo turn wrote:
> 
>> sorry for beeing unclear before. i did want to write that the standard
>> should include a unique  method of retrieving versions, and not leave
>> it to the server. and i'm still wondering what drawbacks this could
>> have - personally i do not see any for such a simple and natural
>> problem. for me its something like "leave the url syntax to be defined
>> by the server" for http servers.
>>  
>>
> Well, I can only suggest that you start the process for revising the 
> current WebDAV/DeltaV RFC.

I'd be surprised if you can get three implementors of different DeltaV 
servers into one room and get them to agree on a single format. That 
being said, I'm still not sure what the problem is.

If the client is for a single server, just rely on the format it's 
using. RFC3253 mandates that a version URI is immutable, that is it'll 
never change.

On the other hand, if the client is supposed to work with multiple 
servers, PROPFINDing the version URIs really is trivial.

Best regards, Julian

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

Re: Older versions through http-repository browsing

Posted by Branko Čibej <br...@xbc.nu>.
solo turn wrote:

>sorry for beeing unclear before. i did want to write that the standard
>should include a unique  method of retrieving versions, and not leave
>it to the server. and i'm still wondering what drawbacks this could
>have - personally i do not see any for such a simple and natural
>problem. for me its something like "leave the url syntax to be defined
>by the server" for http servers.
>  
>
Well, I can only suggest that you start the process for revising the 
current WebDAV/DeltaV RFC.

-- Brane


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

Re: Older versions through http-repository browsing

Posted by solo turn <so...@gmail.com>.
sorry for beeing unclear before. i did want to write that the standard
should include a unique  method of retrieving versions, and not leave
it to the server. and i'm still wondering what drawbacks this could
have - personally i do not see any for such a simple and natural
problem. for me its something like "leave the url syntax to be defined
by the server" for http servers.

-solo.

On 8/22/05, Phillip Susi <ps...@cfl.rr.com> wrote:
> I find that you can access older revisions via web browser by using URLs
> like this:
> 
> https://server/svn/!svn/bc/123 where 123 is the revision number you seek.
> 
> I'm not sure why this isn't documented in the SVN book.  According to
> the DelvtaV standard, the URL syntax used to differentiate between
> versions is left up to the server, and the client needs to use special
> requests to ask the server what URL to use to access specific versions.
>   I looked at apache's access log though and found that svn was using
> URLs like the above, and gave it a try and it worked.
> 
> 
> 
> Michael Sinz wrote:
> > solo turn wrote:
> >
> >>hi,
> >>
> >>why is it not possible to extend webdav or deltav standard to also
> >>have a means of retrieving a version/revision of a resource like:
> >>http://svn.collab.net/repos/svn/trunk/README?rev=1000
> >>which would allow normal apache access control on the url?
> >
> >
> > Actually, using the rewrite trick that I have in the Insurrection tools,
> > this sort of works.  That is, the mod_authz_svn does all of the URL
> > access controls because the access controls are handled before the
> > .htaccess rewrite rules run.
> >
> >
> >>is there any disadvantage in this approach i am not able to see?
> >
> >
> > Other than making mod_dav_svn be more than what it is (and it already
> > is a relatively large bit of code)
> >
> > There are other ways to get the same results since the rewrite rules for
> > a directory apply after mod_authz_svn accepted the requested path.
> > (If mod_authz_svn rejected the path, the rewrite engine never even gets
> > a chance to run)
> >
> > For example, here is the .htaccess I use and one previous version:
> > (note - in my setup, this goes into the "/" directory of the web server)
> >
> >       http://svn.sinz.com/svn/Insurrection/trunk/.htaccess?Insurrection=get&r=221
> >       http://svn.sinz.com/svn/Insurrection/trunk/.htaccess?Insurrection=get&r=220
> >
> > Now, this is a repository that requires user authentication for read access:
> >
> >       http://svn.sinz.com/svn/example2/trunk/fold/fold.html?Insurrection=get&r=6
> >
> > (Sorry, no public user name defined, but this is mod_authz_svn doing the
> > authentication, just like it does for the SVN access rights)
> >
> > Note that there is no way to secure a revision number itself.  So if you have
> > access to the file, you have access to its history.
> >
> > The reason for the get operation is that I also use this to provide access
> > controls on the log files, diffs, etc., that Insurrection provides the web
> > interface for.  It makes for a really nice interface to let mod_authz_svn
> > do all of the authentication.
> >
> 
> 
> ---------------------------------------------------------------------
> 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


Re: Older versions through http-repository browsing

Posted by Phillip Susi <ps...@cfl.rr.com>.
I find that you can access older revisions via web browser by using URLs 
like this:

https://server/svn/!svn/bc/123 where 123 is the revision number you seek.

I'm not sure why this isn't documented in the SVN book.  According to 
the DelvtaV standard, the URL syntax used to differentiate between 
versions is left up to the server, and the client needs to use special 
requests to ask the server what URL to use to access specific versions. 
  I looked at apache's access log though and found that svn was using 
URLs like the above, and gave it a try and it worked.



Michael Sinz wrote:
> solo turn wrote:
> 
>>hi,
>>
>>why is it not possible to extend webdav or deltav standard to also
>>have a means of retrieving a version/revision of a resource like:
>>http://svn.collab.net/repos/svn/trunk/README?rev=1000
>>which would allow normal apache access control on the url?
> 
> 
> Actually, using the rewrite trick that I have in the Insurrection tools,
> this sort of works.  That is, the mod_authz_svn does all of the URL
> access controls because the access controls are handled before the
> .htaccess rewrite rules run.
> 
> 
>>is there any disadvantage in this approach i am not able to see?
> 
> 
> Other than making mod_dav_svn be more than what it is (and it already
> is a relatively large bit of code)
> 
> There are other ways to get the same results since the rewrite rules for
> a directory apply after mod_authz_svn accepted the requested path.
> (If mod_authz_svn rejected the path, the rewrite engine never even gets
> a chance to run)
> 
> For example, here is the .htaccess I use and one previous version:
> (note - in my setup, this goes into the "/" directory of the web server)
> 
> 	http://svn.sinz.com/svn/Insurrection/trunk/.htaccess?Insurrection=get&r=221
> 	http://svn.sinz.com/svn/Insurrection/trunk/.htaccess?Insurrection=get&r=220
> 
> Now, this is a repository that requires user authentication for read access:
> 
> 	http://svn.sinz.com/svn/example2/trunk/fold/fold.html?Insurrection=get&r=6
> 
> (Sorry, no public user name defined, but this is mod_authz_svn doing the
> authentication, just like it does for the SVN access rights)
> 
> Note that there is no way to secure a revision number itself.  So if you have
> access to the file, you have access to its history.
> 
> The reason for the get operation is that I also use this to provide access
> controls on the log files, diffs, etc., that Insurrection provides the web
> interface for.  It makes for a really nice interface to let mod_authz_svn
> do all of the authentication.
> 


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

Re: Older versions through http-repository browsing

Posted by Michael Sinz <Mi...@sinz.org>.
solo turn wrote:
> hi,
> 
> why is it not possible to extend webdav or deltav standard to also
> have a means of retrieving a version/revision of a resource like:
> http://svn.collab.net/repos/svn/trunk/README?rev=1000
> which would allow normal apache access control on the url?

Actually, using the rewrite trick that I have in the Insurrection tools,
this sort of works.  That is, the mod_authz_svn does all of the URL
access controls because the access controls are handled before the
.htaccess rewrite rules run.

> is there any disadvantage in this approach i am not able to see?

Other than making mod_dav_svn be more than what it is (and it already
is a relatively large bit of code)

There are other ways to get the same results since the rewrite rules for
a directory apply after mod_authz_svn accepted the requested path.
(If mod_authz_svn rejected the path, the rewrite engine never even gets
a chance to run)

For example, here is the .htaccess I use and one previous version:
(note - in my setup, this goes into the "/" directory of the web server)

	http://svn.sinz.com/svn/Insurrection/trunk/.htaccess?Insurrection=get&r=221
	http://svn.sinz.com/svn/Insurrection/trunk/.htaccess?Insurrection=get&r=220

Now, this is a repository that requires user authentication for read access:

	http://svn.sinz.com/svn/example2/trunk/fold/fold.html?Insurrection=get&r=6

(Sorry, no public user name defined, but this is mod_authz_svn doing the
authentication, just like it does for the SVN access rights)

Note that there is no way to secure a revision number itself.  So if you have
access to the file, you have access to its history.

The reason for the get operation is that I also use this to provide access
controls on the log files, diffs, etc., that Insurrection provides the web
interface for.  It makes for a really nice interface to let mod_authz_svn
do all of the authentication.

-- 
Michael Sinz                     Technology and Engineering Director/Consultant
"Starting Startups"                                mailto:michael.sinz@sinz.org
My place on the web                            http://www.sinz.org/Michael.Sinz

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

Re: Older versions through http-repository browsing

Posted by solo turn <so...@gmail.com>.
hi,

why is it not possible to extend webdav or deltav standard to also
have a means of retrieving a version/revision of a resource like:
http://svn.collab.net/repos/svn/trunk/README?rev=1000
which would allow normal apache access control on the url?

is there any disadvantage in this approach i am not able to see?

-solo

On 3/4/05, Greg Stein <gs...@lyra.org> wrote:
> On Fri, Mar 04, 2005 at 10:20:08AM -0600, Ben Collins-Sussman wrote:
> >...
> > Matthias:  you keep saying that the ability to look at an arbitrary
> > repository object in a browser is some sort of "killer" or "critical"
> > feature of Subversion.  Let me eradicate that idea from your mind:
> > this is *not* a core feature of Subversion.  It's an accidental
> > artifact of the fact that one of our servers just happens to use HTTP,
> > and that HTTP GET just _happens_ to grab the latest version of the
> > file.  It's not a designed feature, nor is it a planned one.  We don't
> > go around bragging about it or listing it in any whitepapers.  Remember
> > that half of all svn installations don't even use apache as their
> > server!
> 
> What are you talking about, Ben? It *is* a designed and planned feature of
> Subversion. Five years ago, I said that we ought to use HTTP *precisely*
> so that we can have this feature. You and Karl blustered about wanting a
> custom, binary protocol but didn't mind if I wrote up the DAV stuff. Once
> you (Ben) mounted an SVN repository on your Windows box, you were sold.
> 
> So: the "latest version" reachable at a URI is very much a part of the
> design. Maybe not a core conceptual part of Subversion as a version
> control system, but very much a central aspect of (one of) its network
> communication models.
> 
> 
> All that said, the question here is about the private space. We have
> always called it private in case we needed to monkey it around in the
> future for better WebDAV compatibility. The "!svn" part is customizable by
> the server administrator on the off-chance somebody actually needs to a
> file or directory named "!svn" into their repository (or they just feel
> like being contrary).
> 
> But, as we discussed in IM, there is a middle ground here. While we still
> don't want to expose "!svn/bc/NNNN/" in any way (in case we need to change
> it later), we *can* expose "!svn/rev/NNNN/" and just define that tree as a
> revision tree for *servers* to use.
> 
> Note that I say servers. Clients cannot assume that path construction. Any
> given server might change the "!svn" portion.
> 
> But for rewrite tools, CGIs, etc, it is quite possible to build a tool
> around ".../rev/NNNN/". Since the CGI or other tool is installed by the
> server admin, who also controls the special URI prefix, then they can all
> be coordinated.
> 
> The changes to mod_dav_svn should be minimal. In repos.c, there is a
> special_subdirs[] array. Copy/paste the { "bc", ... } section and rewrite
> it to "rev". That should be it. If we ever need to change the "bc" stuff,
> then it will get more complicated, but until then, the two are precisely
> the same.
> 
> Cheers,
> -g
> 
> --
> Greg Stein, http://www.lyra.org/
> 
> ---------------------------------------------------------------------
> 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


Re: Older versions through http-repository browsing

Posted by Greg Stein <gs...@lyra.org>.
On Fri, Mar 04, 2005 at 10:20:08AM -0600, Ben Collins-Sussman wrote:
>...
> Matthias:  you keep saying that the ability to look at an arbitrary 
> repository object in a browser is some sort of "killer" or "critical" 
> feature of Subversion.  Let me eradicate that idea from your mind:  
> this is *not* a core feature of Subversion.  It's an accidental 
> artifact of the fact that one of our servers just happens to use HTTP, 
> and that HTTP GET just _happens_ to grab the latest version of the 
> file.  It's not a designed feature, nor is it a planned one.  We don't 
> go around bragging about it or listing it in any whitepapers.  Remember 
> that half of all svn installations don't even use apache as their 
> server!

What are you talking about, Ben? It *is* a designed and planned feature of
Subversion. Five years ago, I said that we ought to use HTTP *precisely*
so that we can have this feature. You and Karl blustered about wanting a
custom, binary protocol but didn't mind if I wrote up the DAV stuff. Once
you (Ben) mounted an SVN repository on your Windows box, you were sold.

So: the "latest version" reachable at a URI is very much a part of the
design. Maybe not a core conceptual part of Subversion as a version
control system, but very much a central aspect of (one of) its network
communication models.


All that said, the question here is about the private space. We have
always called it private in case we needed to monkey it around in the
future for better WebDAV compatibility. The "!svn" part is customizable by
the server administrator on the off-chance somebody actually needs to a
file or directory named "!svn" into their repository (or they just feel
like being contrary).

But, as we discussed in IM, there is a middle ground here. While we still
don't want to expose "!svn/bc/NNNN/" in any way (in case we need to change
it later), we *can* expose "!svn/rev/NNNN/" and just define that tree as a
revision tree for *servers* to use.

Note that I say servers. Clients cannot assume that path construction. Any
given server might change the "!svn" portion.

But for rewrite tools, CGIs, etc, it is quite possible to build a tool
around ".../rev/NNNN/". Since the CGI or other tool is installed by the
server admin, who also controls the special URI prefix, then they can all
be coordinated.

The changes to mod_dav_svn should be minimal. In repos.c, there is a
special_subdirs[] array. Copy/paste the { "bc", ... } section and rewrite
it to "rev". That should be it. If we ever need to change the "bc" stuff,
then it will get more complicated, but until then, the two are precisely
the same.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

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

Re: Older versions through http-repository browsing

Posted by Matthias Wächter <Ma...@tttech.com>.
Ben,

Ben Collins-Sussman <su...@collab.net> wrote on 04.03.2005 17:20:08:

> Matthias:  you keep saying that the ability to look at an arbitrary 
> repository object in a browser is some sort of "killer" or "critical" 
> feature of Subversion.  Let me eradicate that idea from your mind: 
> this is *not* a core feature of Subversion.  It's an accidental 
> artifact of the fact that one of our servers just happens to use HTTP, 
> and that HTTP GET just _happens_ to grab the latest version of the 
> file.  It's not a designed feature, nor is it a planned one.  We don't 
> go around bragging about it or listing it in any whitepapers.  Remember 
> that half of all svn installations don't even use apache as their 
> server!

Hmmm ... at least the documentation is going around and bragging. let me 
again point you to 
http://svnbook.red-bean.com/en/1.1/ch06s04.html#svn-ch-6-sect-4.5.1

Compare the first two paragraphs of the section to my citation where I use 
"[...]" to remove the unwanted limitations:

"Repository Browsing
One of the most useful benefits of an Apache/WebDAV configuration for your 
Subversion repository is that [the youngest revisions of] your versioned 
files and directories are immediately available for viewing via a regular 
web browser. Since Subversion uses URLs to identify versioned resources, 
those URLs used for HTTP-based repository access can be typed directly 
into a Web browser. Your browser will issue a GET request for that URL, 
and based on whether that URL represents a versioned directory or file, 
mod_dav_svn will respond with a directory listing or with file contents.
[Since the URLs do not contain any information about which version of the 
resource you wish to see, mod_dav_svn will always answer with the youngest 
version.] This functionality has the wonderful side-effect that you can 
pass around Subversion URLs to your peers as references to documents, and 
those URLs will always point at the latest manifestation of that document. 
Of course, you can even use the URLs as hyperlinks from other web sites, 
too. "

The only thing missing in "passing around Subversion URLs" is the revision 
number. It's none of the properties including author and commit message, 
just the revision number.

> Meanwhile, there are at least two other options for "browsing" a 
> repository.  Either (1) use your commandline client ('svn ls', 'svn 
> cat', or TortoiseSVN's 'browser'), or (2) install one of many 
> tried-and-true CGI programs (ViewCVS, WebSVN... heck, there's even a 
> mod_svn_view.)

... making the "Repository Browsing" section above as well as the decision 
to use WebDAV rather useless.

I am surprised that you argue that repository browsing was not a planned 
feature! It is a planned feature the moment you choose WebDAV. And that's 
why WebDAV is made how it is made.

- Matthias

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

Re: Older versions through http-repository browsing

Posted by Ben Collins-Sussman <su...@collab.net>.
On Mar 4, 2005, at 10:04 AM, Peter N. Lundblad wrote:
>>
> Check out the viewcvs syntax, which at least I find more natural.
> Something like
> http://svn.collab.net/viewcvs/svn/trunk/contrib?rev=1490

Peter beat me to the punch.

Any CGI program can browse a repository, and use whatever "nice" syntax 
they wish.  As you can see above, ViewCVS already uses a syntax nearly 
identical to your ideal.

Matthias:  you keep saying that the ability to look at an arbitrary 
repository object in a browser is some sort of "killer" or "critical" 
feature of Subversion.  Let me eradicate that idea from your mind:  
this is *not* a core feature of Subversion.  It's an accidental 
artifact of the fact that one of our servers just happens to use HTTP, 
and that HTTP GET just _happens_ to grab the latest version of the 
file.  It's not a designed feature, nor is it a planned one.  We don't 
go around bragging about it or listing it in any whitepapers.  Remember 
that half of all svn installations don't even use apache as their 
server!

Meanwhile, there are at least two other options for "browsing" a 
repository.  Either (1) use your commandline client ('svn ls', 'svn 
cat', or TortoiseSVN's 'browser'), or (2) install one of many 
tried-and-true CGI programs (ViewCVS, WebSVN... heck, there's even a 
mod_svn_view.)


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

Re: Older versions through http-repository browsing

Posted by Matthias Wächter <Ma...@tttech.com>.
Peter,

"Peter N. Lundblad" <pe...@famlundblad.se> wrote on 04.03.2005 17:04:56:

> What you see is always the HEAD revision. That's often useful and for
> files, it is what DAV requires.

Maybe, but it's not what I require :-)

> You could claim that the directory view is feature-freeze, but it is 
quite
> useful and it doesn't add much complexity. But we have to stop 
somewhere.

Of course. It's not my point to add revision browsing, commit messages and 
properties to the web interface. It's just selection of revisions using 
reproducible URLs.

> Check out the viewcvs syntax, which at least I find more natural.
> Something like
> http://svn.collab.net/viewcvs/svn/trunk/contrib?rev=1490

Well, yes, that's better. It is more natural and close to what I want (I 
knew someone would point me to a repo browser that is better in this 
aspect) but that's not the point. I'd like to have an URL that directly 
relates to a Subversion URI. Pedantic me :-)

> > WebDAV/DeltaV forbid to make the algorithm and naming behind PRIPFIND
> > requests public and that's the cause for this feature to be not 
present?
> > Some kind of unfair to those wanting to use the technique 
efficiently...
> >
> I'm not sure efficiency was the main design criteria for WebDAV...

Well, then?

> > I don't like to have Subversion be a feature-creep repository-browsing
> > application as well. Maybe a plugin mechanism could help here? Any 
path
> > not containing question marks is processed by standard Subversion, and 
if
> > parameters are given, plugins could come into play that can help here.
> > Maybe then WebSVN or such could live transparently behind a Subversion
> > repository?
> >
> I don't see the point running them inside mod_dav_svn. What's the 
problem
> with running them separately?

It's a different URL. You have to give separate URLs for web-browsing and 
for working with the clients. Why use URLs and WebDAV for the repository 
at all?

> As seen above, it doesn't have to be cryptic. Regarding changing, the
> application could leave such guarantees. As a WebDAV server, subversion
> currently doesn't give you such a guarantee for the internal URLs.

But it could, couldn't it? The "?rev=" thing is not used for anything 
AFAIK and will possibly remain unused as PROPFIND is all it takes. Why not 
introduce this feature for this very purpose.

- Matthias

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

Re: Older versions through http-repository browsing

Posted by "Peter N. Lundblad" <pe...@famlundblad.se>.
On Fri, 4 Mar 2005, Matthias Wächter wrote:

> Ben Collins-Sussman <su...@collab.net> wrote on 04.03.2005 15:22:04:
>
> > >         http://server/repos/trunk/file?r=105
> > ... a syntax similar to this already exists, and always has.  But it's
> > a secret.
> >
> > The point is that the WebDAV/DeltaV specification forbids the syntax
> > from being public.   DeltaV clients are supposed to send a series of
> > PROPFIND requests that result in the "discovery" of the URL.  And once
> > the client has the URL, it treats it as an opaque object;  it's not
> > allowed to understand the syntax, and it's *definitely* not allowed to
> > assume that the syntax will stay the same.  The server might have N
> > different syntaxes, or might change its syntax at any time.
> >
> > So:  mod_dav_svn keeps the syntax private.  An ordinary web browser
> > doesn't speak DeltaV, and therefore cannot "discover" the syntax.
>
> That's ok with me in general, but what purpose has the famous
> browser-based repository browsing feature if it does not allow arbitrary
> single-file exports? I mean, wow, what a feature, I can point anyone to a
> file, but neither me nor the other party can assure that what _he_ sees in
> his browser is the same _I_ saw in the browser or what was checked in at
> all.
>
What you see is always the HEAD revision. That's often useful and for
files, it is what DAV requires.

You could claim that the directory view is feature-freeze, but it is quite
useful and it doesn't add much complexity. But we have to stop somewhere.

> > Meanwhile, there are plenty of CGI programs out there explicitly made
> > for browsing a repository, such as ViewCVS or WebSVN.  Their syntaxes
> > are public.
>
> You mean something like this?
>
>
> http://server/WebSVN/filedetails.php?repname=repos&path=%2Ftrunk%2Ffile&rev=105&sc=1
>
Check out the viewcvs syntax, which at least I find more natural.
Something like
http://svn.collab.net/viewcvs/svn/trunk/contrib?rev=1490

> > The fact that the syntax is private implementation detail of DeltaV is
> > just part of the larger picture:  we don't want mod_dav_svn to develop
> > feature-creep and slowly morph into a big repository-browsing
> > application.  That's why its displays of directories are so minimal;
>
> WebDAV/DeltaV forbid to make the algorithm and naming behind PRIPFIND
> requests public and that's the cause for this feature to be not present?
> Some kind of unfair to those wanting to use the technique efficiently...
>
I'm not sure efficiency was the main design criteria for WebDAV...

> I don't like to have Subversion be a feature-creep repository-browsing
> application as well. Maybe a plugin mechanism could help here? Any path
> not containing question marks is processed by standard Subversion, and if
> parameters are given, plugins could come into play that can help here.
> Maybe then WebSVN or such could live transparently behind a Subversion
> repository?
>
I don't see the point running them inside mod_dav_svn. What's the problem
with running them separately?

> Well, it's not just a metter of "can" and "know". It's just a matter of
> reporting a single URI via mail or documentation or whatever _directly_
> pointing to the repository and not to a PHP application with a cryptic,
> unnecessarily verbose, unrelated and maybe changing syntax.

As seen above, it doesn't have to be cryptic. Regarding changing, the
application could leave such guarantees. As a WebDAV server, subversion
currently doesn't give you such a guarantee for the internal URLs.

Regards,
//Peter

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


Re: Older versions through http-repository browsing

Posted by Matthias Wächter <Ma...@tttech.com>.
Ben,

Ben Collins-Sussman <su...@collab.net> wrote on 04.03.2005 15:22:04:

> >         http://server/repos/trunk/file?r=105
> ... a syntax similar to this already exists, and always has.  But it's 
> a secret.
> 
> The point is that the WebDAV/DeltaV specification forbids the syntax 
> from being public.   DeltaV clients are supposed to send a series of 
> PROPFIND requests that result in the "discovery" of the URL.  And once 
> the client has the URL, it treats it as an opaque object;  it's not 
> allowed to understand the syntax, and it's *definitely* not allowed to 
> assume that the syntax will stay the same.  The server might have N 
> different syntaxes, or might change its syntax at any time.
> 
> So:  mod_dav_svn keeps the syntax private.  An ordinary web browser 
> doesn't speak DeltaV, and therefore cannot "discover" the syntax.

That's ok with me in general, but what purpose has the famous 
browser-based repository browsing feature if it does not allow arbitrary 
single-file exports? I mean, wow, what a feature, I can point anyone to a 
file, but neither me nor the other party can assure that what _he_ sees in 
his browser is the same _I_ saw in the browser or what was checked in at 
all.

> Meanwhile, there are plenty of CGI programs out there explicitly made 
> for browsing a repository, such as ViewCVS or WebSVN.  Their syntaxes 
> are public.

You mean something like this?

 
http://server/WebSVN/filedetails.php?repname=repos&path=%2Ftrunk%2Ffile&rev=105&sc=1

Hmmm ... don't like it at all. Maybe I'm missing something here, but the 
URI syntax is only usable to make links work inside the app, nothing more.

I mean, one of the best things in subversion is that having the path to 
_view_ a file in the browser means: You automatically have the path to use 
at the svn CLI or TSVN or any other SVN client to actually _work_ on the 
file! But currently, except for the revision.

> "Sell"?  Yeah, those authors are raking in the money.  :-)

An eye catcher to enforce replies :-)

> The fact that the syntax is private implementation detail of DeltaV is 
> just part of the larger picture:  we don't want mod_dav_svn to develop 
> feature-creep and slowly morph into a big repository-browsing 
> application.  That's why its displays of directories are so minimal; 

Will the principle of Subversion, to use global integer revision numbers 
instead of local dotted ones (like in CVS) ever change? And even if, till 
then a consistent nomenclature for browsing revisions close to the 
repository name used for checkouts would be more a WHOP! WHOP! than a whip 
whip.

WebDAV/DeltaV forbid to make the algorithm and naming behind PRIPFIND 
requests public and that's the cause for this feature to be not present? 
Some kind of unfair to those wanting to use the technique efficiently...

I don't like to have Subversion be a feature-creep repository-browsing 
application as well. Maybe a plugin mechanism could help here? Any path 
not containing question marks is processed by standard Subversion, and if 
parameters are given, plugins could come into play that can help here. 
Maybe then WebSVN or such could live transparently behind a Subversion 
repository?

Again: Transparency between directly web-browsed files and checking out is 
the key issue IMO.

> that's why it doesn't show properties, or log messages, or anything 
> else.  It's a DeltaV server, and nothing more.  If you know DeltaV, you 
> can "discover" all the information you want. 

Well, it's not just a metter of "can" and "know". It's just a matter of 
reporting a single URI via mail or documentation or whatever _directly_ 
pointing to the repository and not to a PHP application with a cryptic, 
unnecessarily verbose, unrelated and maybe changing syntax.

Thanks,
- Matthias

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

Re: Older versions through http-repository browsing

Posted by Ben Collins-Sussman <su...@collab.net>.
On Mar 4, 2005, at 7:36 AM, Matthias Wächter wrote:
>
> What unit in the chain
>
> User
> ->Browser
> ->apache
> ->mod_dav
> ->mod_dav_svn
> ->database
>
> does not allow a "simple" revision number selection, for example by
> appending ?r=<rel>" to the URL?
>

There's nothing that prevents doing that.  In fact,

>
>
>         http://server/repos/trunk/file?r=105

... a syntax similar to this already exists, and always has.  But it's 
a secret.

The point is that the WebDAV/DeltaV specification forbids the syntax 
from being public.   DeltaV clients are supposed to send a series of 
PROPFIND requests that result in the "discovery" of the URL.  And once 
the client has the URL, it treats it as an opaque object;  it's not 
allowed to understand the syntax, and it's *definitely* not allowed to 
assume that the syntax will stay the same.  The server might have N 
different syntaxes, or might change its syntax at any time.

So:  mod_dav_svn keeps the syntax private.  An ordinary web browser 
doesn't speak DeltaV, and therefore cannot "discover" the syntax.

Meanwhile, there are plenty of CGI programs out there explicitly made 
for browsing a repository, such as ViewCVS or WebSVN.  Their syntaxes 
are public.

> Or is it just for the purpose of making Apps like ViewCVS or WebSVN 
> sell
> at all? ;-)
>

"Sell"?  Yeah, those authors are raking in the money.  :-)

The fact that the syntax is private implementation detail of DeltaV is 
just part of the larger picture:  we don't want mod_dav_svn to develop 
feature-creep and slowly morph into a big repository-browsing 
application.  That's why its displays of directories are so minimal;  
that's why it doesn't show properties, or log messages, or anything 
else.  It's a DeltaV server, and nothing more.  If you know DeltaV, you 
can "discover" all the information you want.  If you don't know DeltaV, 
then talk to a good CGI browsing app.


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