Hulala
(Yang)
February 15, 2024, 9:35pm
1
Hello everyone,
I think I’m having trouble trying to contribute to GitLab.
Could someone tell me how should I contribute the code?
I am a customer of using Github and I think the way is to create a new Issue, then branch it and end with a PR.
When I try to create a new branch, I get the error message: “Failed to create branch ‘xxxxxxxxxxx’: invalid reference name ‘branch/default’”.
The hg between git is a headache.
Do we have any guide available for this?
ced
(Cédric Krier)
February 15, 2024, 11:08pm
2
Hulala
(Yang)
February 16, 2024, 10:14am
4
Sure Ced,
But I am not able to create a new Branch to create a new PR to be able to work and contribute.
ced
(Cédric Krier)
February 16, 2024, 10:15am
5
Because the workflow is not based on branches but topics.
See Merge Request Quick Start Guide
ced
(Cédric Krier)
February 16, 2024, 11:42am
6
Indeed we forbid contributors to create branches, only maintainer can do that because in mercurial branches are eternal not like in git. Indeed mercurial topic is a closer concept to git branch than the mercurial branch.
Hulala
(Yang)
February 16, 2024, 11:55am
7
Fine Ced,
I will try it, I think I have not the topic set right at hg.