bugmake - Bugs: bug #18834, VCS Variable expansion

 
 

bug #18834: VCS Variable expansion

Submitter:  Jim Hanley <dgtlrift>
Submitted:  Fri 19 Jan 2007 06:00:27 PM UTC
   
 
Severity:  3 - Normal Priority:  5 - Normal
Item Group:  Enhancement Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Component Version:  3.81
Operating System:  Any Fixed Release:  None
Triage Status:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Fri 19 Jan 2007 06:00:27 PM UTC, original submission:  

There are already rules in place to update delta's against SCCS, RCS, etc.

It would be nice if in addition to this there would also be rules to expand log information within the file.

For example $(vcs_author $<) would expand to nothing if the VCS is not supported or automatically guess the VCS based on whether there is a SCCS,RCS,CVS,.svn/_svn path and expand to the user that last checked that delta.

a well defined API for VCS's could be defined so that the work is actually done in the VCS library rather then make having to directly support the interface to various VCSs.

I bring all this up because, I have written a macro that does something similer to the one described earlier....

define get_author
  $(shell svn info $(1) | grep "Last Changed Author" | awk '{ print $$4 }')
endef

but this is not platform neutral.

These functions would be useful in a situation where gmake is being used to launch a nightly build process and the nightly dies  and quickly pointing the finger to the culprit that checked it in.

I could see other similar functions, but I'm sure others can come up with more.

$(vcs_author $(<))  expands to Last Changed Author
$(vcs_version $(<)) expands to current version/delta of file

Jim Hanley <dgtlrift>

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by dgtlrift (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

    History

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-01-19 dgtlrift Carbon-Copy- Added dgtlrift

    Back to the top

    Powered by Savane 3.16-a7ba.
    Corresponding source code