Skip to content

Commit

Permalink
Merge pull request #32 from visit-dav/task/brugger1/2019_01_29_fix_SV…
Browse files Browse the repository at this point in the history
…NVersion

Replaced call to SVNVersion with GITVersion.
  • Loading branch information
brugger1 committed Jan 29, 2019
2 parents b081fbf + 6b1c35f commit 74f201c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
12 changes: 8 additions & 4 deletions src/common/misc/VisItInit.C
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ NewHandler(void)
// Added logic to manage decoration of level 1 debug logs with __FILE__
// and __LINE__; an extra 'd' in debug level arg will turn on these log
// decorations.
//
// Eric Brugger, Tue Jan 29 09:09:44 PST 2019
// I modified the method to work with Git.
//
// ****************************************************************************

void
Expand Down Expand Up @@ -369,12 +373,12 @@ VisItInit::Initialize(int &argc, char *argv[], int r, int n, bool strip, bool si
{
SetIsDevelopmentVersion(true);
}
else if (strcmp("-svn_revision", argv[i]) == 0)
else if (strcmp("-git_revision", argv[i]) == 0)
{
if(visitcommon::SVNVersion() == "")
cerr << "SVN revision is unknown!" << endl;
if(visitcommon::GITVersion() == "")
cerr << "GIT version is unknown!" << endl;
else
cerr << "Built from revision " << visitcommon::SVNVersion() << endl;
cerr << "Built from version " << visitcommon::GITVersion() << endl;
exit(0); // HOOKS_IGNORE
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/doc/StartupOptions/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ USAGE: visit [options]::
Version options
---------------------------------------------------------------------------
-version Do NOT run VisIt. Just print the current version.
-svn_revision Do NOT run VisIt. Just print the Subversion
revision it was built from.
-git_version Do NOT run VisIt. Just print the Git version it
was built from.
-beta Run the current beta version.
-v <version> Run a specified version. Specifying 2 digits,
such as X.Y, will run the latest patch release
Expand Down
4 changes: 2 additions & 2 deletions src/resources/usage/visitusage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
Version options
---------------------------------------------------------------------------
-version Do NOT run VisIt. Just print the current version.
-svn_revision Do NOT run VisIt. Just print the Subversion
revision it was built from.
-git_version Do NOT run VisIt. Just print the Git version it
was built from.
-beta Run the current beta version.
-v <version> Run a specified version. Specifying 2 digits,
such as X.Y, will run the latest patch release
Expand Down

0 comments on commit 74f201c

Please sign in to comment.