Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 133757

Summary: subversion.eclass: Set ESVN_REVISION variable after checkout/update
Product: Gentoo Linux Reporter: Bruno <bonbons>
Component: EclassesAssignee: Akinori Hattori <hattya>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to add ESVN_REVISION variable

Description Bruno 2006-05-19 02:10:10 UTC
Having the actual revision of source checked out (or updated) available to ebuilds is useful:

- ebuild can override project version where possible
  (makes it possible to report bugs telling the source revision)

- on compilation errors, can provide revision

I suggest setting variable ESVN_REVISION after checkout/update.
Comment 1 Bruno 2006-05-19 02:15:58 UTC
Created attachment 87047 [details, diff]
Patch to add ESVN_REVISION variable

Sugested patch to generate ESVN_REVISION variable
Comment 2 Akinori Hattori gentoo-dev 2006-07-22 06:55:44 UTC
Fixed in CVS.

subversion_wc_info function sets ESVN_WC_REVISION and ESVN_WC_URL variables.