FS#62092 - [makepkg] wrong default hg branch
Attached to Project:
Pacman
Opened by Patrik Bachan (diggit) - Wednesday, 20 March 2019, 21:39 GMT
Last edited by Allan McRae (Allan) - Friday, 11 October 2019, 10:24 GMT
Opened by Patrik Bachan (diggit) - Wednesday, 20 March 2019, 21:39 GMT
Last edited by Allan McRae (Allan) - Friday, 11 October 2019, 10:24 GMT
|
Details
Summary and Info:
makepkg fails to select correct default branch with hg Steps to Reproduce: Problem occurred with repo:hyOzd@bitbucket.org/hyOzd/serialplot"> https://hyOzd@bitbucket.org/hyOzd/serialplot When cloning manually, auto selected branch is one called "default", that is correct. Using PKGBUILD with: source=('hg+https://bitbucket.org/hyOzd/serialplot') auto selected branch is one called "reader-stat" which is not default one. (but most recently changed - https://bitbucket.org/hyOzd/serialplot/branches/) |
This task depends upon
Closed by Allan McRae (Allan)
Friday, 11 October 2019, 10:24 GMT
Reason for closing: Fixed
Additional comments about closing: git commit a8b3d1a6
Friday, 11 October 2019, 10:24 GMT
Reason for closing: Fixed
Additional comments about closing: git commit a8b3d1a6
hg seems to enforce the use of "default", which is contrary to the way git does not enforce "master". With git, we simply look up the symbolic "HEAD" ref, which in a bare clone matches upstream's default branch. With hg, I guess we'll need to check for the existence of the "@" bookmark first.
Since I'm not really familiar with the way hg works, I'd appreciate confirmation before I submit a patch to implement this change.
Can you please confirm it fixes the issue for you?