Page MenuHomeFreeBSD

Fix hg support in newvers.sh
Needs ReviewPublic

Authored by dnelson_1901_yahoo.com on Aug 15 2018, 5:25 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary
  • hg -R takes a path to the repo root, not to the .hg directory under it

Without this patch, $hg_cmd will always fail complaining that it can't find a repository

  • look for any parent with a svnrev in an hg repo

The previous behavior worked if you were making changes directly off the current branch, but if you are a few branch points away from an svn-based commit, "hg svn info" fails with the error "Sorry, can't find svn parent of a merge revision."

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 18819
Build 18483: arc lint + arc unit