Bug 2814

Summary: run waf sphinx without Mercurial
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: documentationAssignee: Tom Henderson <tomh>
Status: PATCH PENDING ---    
Severity: normal CC: ns-bugs, parthpandyappp, pdbarnes
Priority: P3    
Version: unspecified   
Hardware: All   
OS: All   
Attachments: possible patch

Description Tom Henderson 2017-11-02 20:27:07 EDT
Discussed on the zulip chat recently; Matt requested to be able to run ./waf --sphinx without mercurial being installed on a system.  The file 'get_version.sh' could be modified to fall back to something else (like VERSION) if hg is not found.
Comment 1 Tom Henderson 2017-11-02 22:46:42 EDT
Created attachment 2945 [details]
possible patch

suppresses printing version if hg not found
Comment 2 Peter Barnes 2019-11-05 19:04:11 EST
Revisit this once Matt Bielejeski's BuildVersion patch is merged.
Comment 3 Parth Pandya 2020-01-23 07:53:15 EST
Is this issue active yet?
If yes, then can I get some more specific description?
Comment 4 Peter Barnes 2020-01-23 14:24:09 EST
We have a new feature to release, BuildVersion, which enables the simulation script to report the source code version, including most recent release tag, commit hash, number of commits since tag, whether the repo has uncommitted edits.

This involves auto-generating an include file with the version information.  get_version.sh could get the info it needs from this new version file, rather than relying on hg/git directly.

@Parth: I suggest waiting until we have published BuildVersion, then looking at how to refactor get_version.sh.
Comment 5 Parth Pandya 2020-01-24 08:21:34 EST
Okay, then I'll look for any other issue till that!