<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 26 March 2015 at 09:46, Graeme Geldenhuys <span dir="ltr"><<a href="mailto:mailinglists@geldenhuys.co.uk" target="_blank">mailinglists@geldenhuys.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2015-03-26 05:47, vfclists . wrote:<br>
> This is what I have settled on in the mean time.<br>
><br>
> LAZ_SVN_REVISION=`git log  | grep -A 10 $LAZ_GIT_REVISION | grep<br>
> git-svn-id |  cut -d "@" -f 2 | cut -d " " -f 1`<br>
<br>
</span>Didn't the following work for you? It extracts exactly what you want and<br>
will work on any commit, no matter how long the commit message, and only<br>
uses built-in git functionality.<br>
<span class=""><br>
  git svn find-rev $(git log --max-count 1 --pretty=format:%H)<br>
<br>
</span>The "find-rev" needs a SHA1 value, which is what the second part of the<br>
command (in brackets) does. So if the above command doesn't work in your<br>
script as one command, simply split it into two.<br></blockquote></div><br></div><div class="gmail_extra">'git svn find-rev' works for finding the Git commit refs from subversion refs only if the subversion refs are of the form rNNNNN, and I thought going the other way, ie finding subversion refs from git refs wouldn't work as Lazarus uses NNNNN rather than expected NNNNN.<br><br></div><div class="gmail_extra">I guess that is probably taken care of during the mirroring process.<br clear="all"></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature">Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com">http://devblog.brahmancreations.com</a></div>
</div></div>