From users-return-5291-daniel=haxx.se@subversion.apache.org Mon Oct 11 05:38:05 2010 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on giant.haxx.se X-Spam-Level: X-Spam-Status: No, score=0.5 required=3.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID,T_RP_MATCHES_RCVD autolearn=no version=3.3.1 Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with SMTP id o9B3c4tp003518 for ; Mon, 11 Oct 2010 05:38:04 +0200 Received: (qmail 54483 invoked by uid 500); 11 Oct 2010 03:37:55 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 54476 invoked by uid 99); 11 Oct 2010 03:37:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Oct 2010 03:37:55 +0000 X-ASF-Spam-Status: No, hits=4.4 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS Received-SPF: pass (athena.apache.org: domain of techgeek12345@gmail.com designates 74.125.82.47 as permitted sender) Received: from [74.125.82.47] (HELO mail-ww0-f47.google.com) (74.125.82.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Oct 2010 03:37:48 +0000 Received: by wwf26 with SMTP id 26so6680517wwf.16 for ; Sun, 10 Oct 2010 20:37:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=KmscSZ8nCPz8zFY84TOz/ji5XnqnYx/TEbq9Xt6pGf0=; b=bj4lDrWxoMMH7G0NoVtq4Tc49rjkMKyyQnod1du5G6MopfuBigv2lnryU6EmRqsXqJ ov1hlFIKZOcDVoyN8BEdeVb52dH0ocgin7s+d/X9SReRusoAQPhZge1lkQNI7KF98Nsy 1ygxbSHQ3HI9MZp1gKSYWIMy7LcRamh4Gnjx0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=W4ZOhmlsbHNM1kQQrWvIDIwzC/QmweTNUK75zyUEekrH8H0DzoJMFyvQCG92qpqOpJ +Ip/Fvn/wcWCfxzzz7R0UXhlhTWO5dZCuqv8hBVaOoasjAfxFHF2lBXbxDBLkHFGpE6C nWnUkhBqYXsc/EXOKtn9JLsYKDoIL40EmJ0vU= MIME-Version: 1.0 Received: by 10.227.37.8 with SMTP id v8mr5105264wbd.180.1286768245904; Sun, 10 Oct 2010 20:37:25 -0700 (PDT) Received: by 10.227.137.21 with HTTP; Sun, 10 Oct 2010 20:37:25 -0700 (PDT) In-Reply-To: References: Date: Sun, 10 Oct 2010 20:37:25 -0700 Message-ID: Subject: Re: Better way to get the full rule of the last commit? From: Tech Geek To: Daniel Becroft Cc: Subversion Users Content-Type: multipart/alternative; boundary=002215974c5a3495b204924f14f9 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.5 (giant.haxx.se [80.67.6.50]); Mon, 11 Oct 2010 05:38:05 +0200 (CEST) X-Friend: Nope --002215974c5a3495b204924f14f9 Content-Type: text/plain; charset=ISO-8859-1 Daniel, >That is not possible for SVN to determine, as it does not know *how* you are serving the repository (HTTP, HTTPS, svn+ssh, svn, >etc). $REPOS will give you the physical path to the repository, not necessarily the publicly accessible path. That not a problem. I can always prefix the protocol like file:///, http://, https:// or svn:// to the full URL. For example if somehow svnlook can somehow return this: /var/lib/svn/projectA/PartA/tags/DEV-1.00_RC5 say in variable called URL then I do this: URL="file:///$URL" --002215974c5a3495b204924f14f9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Daniel,
>That is not possible for SVN to determine, as it does not know *ho= w* you are serving the repository (HTTP, HTTPS, svn+ssh, svn, >etc). $RE= POS will give you the physical path to the repository, not necessarily the = publicly accessible path.
That=A0not a problem. I can always prefix the protocol like file:///, http://, https:// or svn:// to the=A0full URL.
=A0
For example if somehow svnlook can somehow return this:
/var/lib/svn/projectA/PartA/tags/DEV-1.00_RC5
say in=A0variable=A0called URL then I do this:
=A0
URL=3D"file:///$URL"
=A0
--002215974c5a3495b204924f14f9--