[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lucene-dev
Subject:    Re: [jira] [Commented] (LUCENE-6938) Convert build to work with Git rather than SVN.
From:       Dennis Gove <dpgove () gmail ! com>
Date:       2015-12-31 15:50:44
Message-ID: CAPsCRSXsup5+3kyZX3A4_j+YnkCM3-k3FtYkmRjGqQ-y_RtHjw () mail ! gmail ! com
[Download RAW message or body]

You can get the current sha1 with the command

$> git rev-parse HEAD

And you can replace HEAD with the name of a branch/tag to get the sha1 of
that. See
$> git help rev-parse
for all the options



On Thu, Dec 31, 2015 at 10:42 AM, Uwe Schindler (JIRA) <jira@apache.org>
wrote:

> 
> [
> https://issues.apache.org/jira/browse/LUCENE-6938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15076029#comment-15076029
>  ]
> 
> Uwe Schindler commented on LUCENE-6938:
> ---------------------------------------
> 
> bq. Wow  I bet there is a good chance this is much faster with Git.
> Otherwise, there must be some way to just get the checkout sha once and use
> it for every jar?
> 
> Yes that would work. I was about to do that on svn already. The trick is
> to just populate the property once and pass it down to sub-builds (using
> the patternset of properties to pass down). We then just need a task that
> populates the property if it doest not yet exists (unless="property")
> 
> I think we should just replace the old SVN revision in JAR files by the
> sha1. It should be easy to get it with a single "git" command (no idea how:
> I am still not firm in using Git's CLI; I always use TortoiseGit, because
> the command line of Git is the most confusing an user-unfriendly thing I
> have ever seen).
> 
> FYI: I would not call "jgit" to populate the property at the moment - if
> we cache the result its fine - because this will cause permgen errors in
> Java 7 (the well-known Ant Classloader bug). Otherwise I would have
> implemented the same for SVN already :-) (I have a patch here for SVN
> similar to Dawid's code, but this breaks the whole build after a complete
> build with many JAR files).
> 
> > Convert build to work with Git rather than SVN.
> > -----------------------------------------------
> > 
> > Key: LUCENE-6938
> > URL: https://issues.apache.org/jira/browse/LUCENE-6938
> > Project: Lucene - Core
> > Issue Type: Task
> > Reporter: Mark Miller
> > Assignee: Mark Miller
> > Attachments: LUCENE-6938.patch
> > 
> > 
> > We assume an SVN checkout in parts of our build and will need to move to
> assuming a Git checkout.
> > Patches against https://github.com/dweiss/lucene-solr-svn2git from
> LUCENE-6933.
> 
> 
> 
> --
> This message was sent by Atlassian JIRA
> (v6.3.4#6332)
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
> 
> 


[Attachment #3 (text/html)]

<div dir="ltr">You can get the current sha1 with the command<div><br>$&gt;  <span \
style="font-family:Consolas,Menlo,Monaco,&#39;Lucida Console&#39;,&#39;Liberation \
Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,&#39;Courier \
New&#39;,monospace,sans-serif;white-space:inherit;color:rgb(34,36,38);font-size:13px;background-color:rgb(238,238,238)">git \
rev-parse HEAD<br><br>And you can replace HEAD with the name of a branch/tag to get \
the sha1 of that. See <br>$&gt; git help rev-parse  <br>for all the \
options<br><br><br></span></div></div><div class="gmail_extra"><br><div \
class="gmail_quote">On Thu, Dec 31, 2015 at 10:42 AM, Uwe Schindler (JIRA) <span \
dir="ltr">&lt;<a href="mailto:jira@apache.org" \
target="_blank">jira@apache.org</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><br>  [ <a \
href="https://issues.apache.org/jira/browse/LUCENE-6938?page=com.atlassian.jira.plugin \
.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=15076029#comment-15076029" \
rel="noreferrer" target="_blank">https://issues.apache.org/jira/browse/LUCENE-6938?pag \
e=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=15076029#comment-15076029</a> \
]<br> <br>
Uwe Schindler commented on LUCENE-6938:<br>
---------------------------------------<br>
<br>
bq. Wow   I bet there is a good chance this is much faster with Git. Otherwise, there \
must be some way to just get the checkout sha once and use it for every jar?<br> <br>
Yes that would work. I was about to do that on svn already. The trick is to just \
populate the property once and pass it down to sub-builds (using the patternset of \
properties to pass down). We then just need a task that populates the property if it \
doest not yet exists (unless=&quot;property&quot;)<br> <br>
I think we should just replace the old SVN revision in JAR files by the sha1. It \
should be easy to get it with a single &quot;git&quot; command (no idea how: I am \
still not firm in using Git&#39;s CLI; I always use TortoiseGit, because the command \
line of Git is the most confusing an user-unfriendly thing I have ever seen).<br> \
                <br>
FYI: I would not call &quot;jgit&quot; to populate the property at the moment - if we \
cache the result its fine - because this will cause permgen errors in Java 7 (the \
well-known Ant Classloader bug). Otherwise I would have implemented the same for SVN \
already :-) (I have a patch here for SVN similar to Dawid&#39;s code, but this breaks \
the whole build after a complete build with many JAR files).<br> <br>
&gt; Convert build to work with Git rather than SVN.<br>
&gt; -----------------------------------------------<br>
&gt;<br>
&gt;                          Key: LUCENE-6938<br>
&gt;                          URL: <a \
href="https://issues.apache.org/jira/browse/LUCENE-6938" rel="noreferrer" \
target="_blank">https://issues.apache.org/jira/browse/LUCENE-6938</a><br> &gt;        \
Project: Lucene - Core<br> &gt;               Issue Type: Task<br>
&gt;                  Reporter: Mark Miller<br>
&gt;                  Assignee: Mark Miller<br>
&gt;              Attachments: LUCENE-6938.patch<br>
&gt;<br>
&gt;<br>
&gt; We assume an SVN checkout in parts of our build and will need to move to \
assuming a Git checkout.<br> &gt; Patches against <a \
href="https://github.com/dweiss/lucene-solr-svn2git" rel="noreferrer" \
target="_blank">https://github.com/dweiss/lucene-solr-svn2git</a> from \
LUCENE-6933.<br> <br>
<br>
<br>
--<br>
This message was sent by Atlassian JIRA<br>
(v6.3.4#6332)<br>
<br>
---------------------------------------------------------------------<br>
To unsubscribe, e-mail: <a \
href="mailto:dev-unsubscribe@lucene.apache.org">dev-unsubscribe@lucene.apache.org</a><br>
 For additional commands, e-mail: <a \
href="mailto:dev-help@lucene.apache.org">dev-help@lucene.apache.org</a><br> <br>
</blockquote></div><br></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic