subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Shahaf" <>
Subject Re: Is it possible to get the location of WC in a post-commit hook?
Date Thu, 10 Jun 2021 00:19:07 GMT
Some ideas:

- Parse the operational log to determine the IP address of the commit

- Pass the hostname and wc path in a revprop

- Embed the hostname and wc path in the user-agent string and use
  [admittedly a bit hacky; this isn't what the user-agent string is for]

However, it sounds like you'll be better served by implementing some
sort of dashboard that shows all known WC's and the current revision of
each.  That's the domain of monitoring and network management tools.

Thorsten wrote on Wed, 09 Jun 2021 08:48 +00:00:
> Hello,
> Short answer: no its not possible.
> I dont fully understand why you want to do this. Run "svn up" on any 
> device to get the latest commit.
> Run "svn st -u" or something else to check for incoming changes.
> Other than that you could also do something fancy like create an own 
> user for every working copy, that way you can differentiate them.
> Hope that helps,
> Thorsten Goetzke
> Am 09/06/2021 um 09:38 schrieb Bo Berglund:
> > I wrote a SVN mailer when we converted from CVSNT to SubVersion back in 2017.
> > Its purpose is to send a nocely formatted commit message to subscribers and it
> > has worked fine for years.
> >
> > But now I am missing one item in the mail, the location of the working copy from
> > which the commit was done.
> >
> > I am working on a project where I have several WC in play, on my development
> > device and the prototype and also a 3rd device. I have found it to be a bit
> > difficult to keep track of which wc contains the latest commit so if it is
> > possible to get this info on commit it would help a lot. These devices are all
> > Linux.
> >
> > The mailer gets the data by calling svnlook.
> >
> > The svn server is on Windows Server 2016.
> >

View raw message