Bug 2814 - run waf sphinx without Mercurial
run waf sphinx without Mercurial
Product: ns-3
Classification: Unclassified
Component: documentation
All All
: P3 normal
Assigned To: Tom Henderson
Depends on:
  Show dependency treegraph
Reported: 2017-11-02 20:27 EDT by Tom Henderson
Modified: 2020-01-24 08:21 EST (History)
3 users (show)

See Also:

possible patch (2.38 KB, patch)
2017-11-02 22:46 EDT, Tom Henderson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!