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

Re: Common directory not displayed in subject of post-commit email

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2007-11-08 20:38:31 CET

Marilyn Daum wrote:
> We use both TortoiseSVN and Eclipse for subversion checkins. For
> checkins originating in Eclipse, the post-commit email subject line
> contains our own prefix, the revision, and the common directory changed
> (apparently the calculated value of commondir in commit-email.pl). For
> checkins originating from TortoiseSVN, the post-commit email subject
> line contains our prefix, the revision, but *not the common directory
> changed*. We'd really like to have this included for TortoiseSVN
> checkins. Any suggestions on how to make this happen?

I don't think you can make this work. Let me explain:
the 'common directory changed' is determined internally by the
Subversion library and passed to the hook scripts. But this only works
reliably if the paths affected are *relative* paths (i.e., relative to
e.g., the working copy root). But TSVN has to use absolute paths,
relative paths don't work for a shell extension.
If you would use the command line client and pass absolute paths for the
commit, you would see the same result.
One way to help make this work: always commit everything in TSVN. That
will make TSVN make the commit with one single path passed to the
library and not a list of paths - in such cases the svn library might be
able to determine the common directory.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Thu Nov 8 21:00:05 2007

This is an archived mail posted to the TortoiseSVN Users mailing list.

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