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:
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits