mail[Wesnoth-commits] r28792 - /trunk/SConstruct


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by loonycyborg on August 20, 2008 - 19:56:
Author: loonycyborg
Date: Wed Aug 20 19:07:28 2008
New Revision: 28792

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28792&view=rev
Log:
Use "git-svn find-rev HEAD" to find revision of git-svn.

Modified:
    trunk/SConstruct

Modified: trunk/SConstruct
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=28792&r1=28791&r2=28792&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Wed Aug 20 19:07:28 2008
@@ -294,10 +294,8 @@
     env.Append(FRAMEWORKS = "Carbon")            # Carbon GUI
 
 if os.path.exists('.git'):
-    import re
-    p = re.compile('Revision: ([0-9]+)');
     try:
-        env["svnrev"] = p.search(Popen(Split("git-svn info"), 
stdout=PIPE).communicate()[0]).group(1)
+        env["svnrev"] = Popen(Split("git-svn find-rev HEAD"), 
stdout=PIPE).communicate()[0].rstrip("\n")
     except:
         env["svnrev"] = ""
 else:




Related Messages


Powered by MHonArc, Updated Wed Aug 20 20:01:56 2008