I have been committing regularly to a mercurial repo which is managed by Bitbucket. Today when I made a commit as I always do, Bitbucket has marked the commit as "draft" (this has never happened before). Any ideas what a draft commit is?
Squashing Commits Once the commits are in draft, run the hg histedit rev-id command, specifying the earliest draft commit. This will open the history edit function in your terminal, allowing you to fold the commit messages into one. Select a commit to use as the one into which the others will be squashed.
A simple way to 'uncommit' your last commit is to use hg strip -r -1 -k. In case the link breaks, the documentation mentioned by @phb states: hg rollback Roll back the last transaction (DANGEROUS) (DEPRECATED) Please use 'hg commit --amend' instead of rollback to correct mistakes in the last commit.
I see the same thing. It looks like there was a change implemented recently to support phases. I fixed this by going into the settings for my repo and 1) turning on "This is a non-publishing repository", 2) Saving, then 3) turning it back off. It may work for you.
A draft is part of the phases framework: https://www.mercurial-scm.org/repo/hg/help/phases
I am not that familiar with this feature, but it would appear as if Bitbucket possibly changed some setting and is now marking public commits as draft.
I too noticed this, but in the last few minutes, it appears as if the system removed the draft label.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With