Page 1 of 1
Pull requests (bitbucket)
Posted: Sat Mar 09, 2013 11:23 am
by Transporter
Hi,
I've a small problem with bitbucket. There are a few commits for ogitor in my fork and I like to create seperate pull-requests for each of them. How can I create seperate pull-requests? bitbucket always updates the last pull-request with all commits. I can find options to create a new one and select a specific commit.
Thanks for help,
Transporter
Re: Pull requests (bitbucket)
Posted: Sat Mar 09, 2013 2:36 pm
by AlexeyKnyshev
Transporter wrote:Hi,
I've a small problem with bitbucket. There are a few commits for ogitor in my fork and I like to create seperate pull-requests for each of them. How can I create seperate pull-requests? bitbucket always updates the last pull-request with all commits. I can find options to create a new one and select a specific commit.
Thanks for help,
Transporter
You can make separate patches using version controll system.
Re: Pull requests (bitbucket)
Posted: Sat Mar 09, 2013 3:02 pm
by Transporter
AlexeyKnyshev wrote:You can make separate patches using version controll system.
Can you explain me how I can make separate patches?
Re: Pull requests (bitbucket)
Posted: Sat Mar 09, 2013 6:30 pm
by AlexeyKnyshev
Transporter wrote:AlexeyKnyshev wrote:You can make separate patches using version controll system.
Can you explain me how I can make separate patches?
I'm not a hg expert (git user) but allmost behavior is same. Look for "hg diff" documentation. You need sequence of patches between states (commits). So it will look like "hg diff %from_state% %to_state%".
Re: Pull requests (bitbucket)
Posted: Sat Mar 09, 2013 7:52 pm
by Transporter
AlexeyKnyshev wrote:I'm not a hg expert (git user) but allmost behavior is same. Look for "hg diff" documentation. You need sequence of patches between states (commits). So it will look like "hg diff %from_state% %to_state%".
This doesn't help me. I don't want want a patch file, I like to have a pull-request on bitbucket.
Re: Pull requests (bitbucket)
Posted: Sun Mar 10, 2013 1:20 pm
by AlexeyKnyshev
Did you report your problem to atlassian? Try to figure out it with them? It looks like we haven't option to make sepatated pull requests on bitbucket (fix me, if it's wrong). So I have an idea but it quiet hard to implement with hg. You need to clone you repo from revision of your first commit:
hg clone --rev 5
hg update -r 5
Put your revision numbers instead 5.
Than make branch, commit/push and pull request.
Do it again for each commit.
It looks like lifehack, but it should work for you.
Best wishes, Alexey
Re: Pull requests (bitbucket)
Posted: Sun Mar 10, 2013 1:33 pm
by jacmoe
You can export your changes as 5 different patches, then clean your repository, create a branch, import the patch, issue a pull request, and move on to the next patch.
You can't separate it out because Mercurial works on the repository level, not the file level.
Re: Pull requests (bitbucket)
Posted: Sun Mar 10, 2013 1:39 pm
by jacmoe
A great tip for pushing only the branch you're working on:
http://hgtip.com/tips/advanced/2009-09- ... tler-push/