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

Re: FEATURE REQUEST: svnadmin to accept URL notation file:///

From: Josh Gilkerson <jwg_at_google.com>
Date: 2007-04-27 19:35:39 CEST

Jari,

If you really want to make this work, assuming you use bash, you can
add the following to your .bashrc or .bash_profile:

------------
svnadmin() {
  ( for i in "$@"; do
  if [[ "$i" == "file://"* ]]; then
    sed -e 's!^file:///!/!' <<<"$i"
  else
    echo "$i"
  fi
    done; ) | xargs $(which svnadmin)
}
------------

On 4/26/07, Daniel Rall <dlr@collab.net> wrote:
> On Thu, 26 Apr 2007, Jari Aalto wrote:
>
> >
> > According to http://subversion.tigris.org/project_issues.html, I'm
> > bringing this issue forward here first.
> >
> > PROPOSAL
> > ===========
> >
> > Support file:/// URL scheme in svnadmin command
> >
> > RATIONALE
> > ===========
> >
> > Working on local repositories need file:/// prefix in svn commands.
> > Copy/pasting links around e.g. to svnadmin would be easier. No need to
> > remember to change to use 'Native' OS absolute path.
> >
> > BUG STATUS
> > ===========
> >
> > This is a feature request for next release, unless already
> > implemented.
>
> 'svnadmin' only works against the native file system -- it doesn't use
> the repository access (RA) layer, which understands various protocols
> (e.g. "file://"). While I can see how this is a convenience for the
> end user, I'm not convinced that it would be an appropriate addition.
>
> And, we already give a pretty good error here:
>
> svnadmin: 'file:///tmp/repos' is an URL when it should be a path
>
>

-- 
Josh Gilkerson
Software Engineer
Google, Inc  MV-1600 Plymouth (HQ)
+1 (650) 253-1667 direct
+1 (859) 608-7827 cell
jwg@google.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 27 19:36:01 2007

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.