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

PROPOSAL: URL-syntax (Was: Re: Official revision syntax for Subversion URLs)

From: SLOGEN <jensen_at_slog.dk>
Date: 2003-08-05 09:26:58 CEST

Currently proposed methods for URL's of revisions have several flaws:

  - they either make some files unnamable by the syntax, or require
escaping of certain caracters
  - they make relative operations on URL's fail, (URL to "./foo" gives
you HEAD rev. of foo, not the same revision as you asked for this file)
  - The "?" notation makes the results uncacheable (jf.
ftp://ftp.isi.edu/in-notes/rfc2616.txt)

I propose an alternate notation:

Add any revision-encoding to the repository path, example:

   http://svn.foo/repository;1234/dir/file

The ";" could be whatever you like, just something unusual will be best.

Pros:

  - It captures the exact philosophy behind subversion, that
repositories have revisions, not files.
  - It allows _any_ file-names representable in URL notation
  - It makes relative URL's work (moving to ./file2 gives you rev. 1234,
not HEAD)
  - It's easy usable for scripts/cmd-line, no escaping
  - HTTP allows caching of the resulting values

Cons:

  - It disallows repositories with certain names, for example if we
choose the ";" you cannot have a repository directory named
".*;([0-9]+|HEAD)"

What's your thoughts?

-- 
Helge
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 5 09:27:55 2003

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

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