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

Re: [PATCH] Have default log message use relative paths

From: Colin Watson <cjwatson_at_flatline.org.uk>
Date: 2003-03-21 05:17:08 CET

On Fri, Mar 21, 2003 at 02:51:39AM +0100, Branko ??ibej wrote:
> Justin Erenkrantz wrote:
> > --On Friday, March 21, 2003 2:43 AM +0100 "Branko ?ibej"
> > <brane@xbc.nu> wrote:
> >> Heh. For me, the form most likely to be useful is absolute paths. I
> >> often commit from a subdirectory, but want to put the full path relative
> >> to /trunk into the log.
> >
> > Ideally, I would have preferred that solution (relative to the top of
> > the WC), but it doesn't seem that SVN has a canonical way to know what
> > that is. (I thought that the commit notifier knew this, but it
> > doesn't either.) However, with this patch, if you happen to commit
> > from /trunk, you get it just right.
>
> Weeel, it's not so hard to figure out what the top of the WC is; just
> chop the end off of cwd() until you run out of .svn directories.

Not necessarily. /home/cjwatson and /home/cjwatson/bin here are two
different working copies. (I'd use svn:externals except for the fact
that I use that repository from different locations where the hostname
of the server is different.)

Maybe you could chop off components as long as there's an .svn directory
and as long as the URL for svn:this_dir in .svn/entries is losing
components in the same way. Although, ugh, horrible layering violation.

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 21 05:17:52 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.