Page MenuHomeFreeBSD

Fix hg support in newvers.sh
Needs ReviewPublic

Authored by dnelson_1901_yahoo.com on Aug 15 2018, 5:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 15, 1:40 AM
Unknown Object (File)
Sat, Apr 6, 3:05 AM
Unknown Object (File)
Thu, Mar 28, 6:35 PM
Unknown Object (File)
Dec 23 2023, 9:44 AM
Unknown Object (File)
Dec 12 2023, 6:48 PM
Unknown Object (File)
Nov 24 2023, 6:16 AM
Unknown Object (File)
Nov 22 2023, 10:34 PM
Unknown Object (File)
Oct 19 2023, 5:23 AM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 18819
Build 18483: arc lint + arc unit