fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] dw_dev2014-07-28 01:42 am
Entry tags:

Retiring master

We have two main branches in the Dreamwidth repositories: master and develop.

master was intended to be used but... never really got any love.

So here's what I propose: remove all the instructions in our documentation which mention master, and just have 'develop`.

Since develop is where all work goes, nothing in the dev workflow will officially change. But occasionally we have accidents where master gets merged into developinstead of the other way around, or someone finds themselves on master when they should be on develop instead -- and removing any mention of master from our instructions should prevent that from ever happening again.

As for what will happen to master... we never actually used it, and at this point ingrained habits for develop + all setups old and new assume develop, so I suggest we continue not using master the way we currently do.

mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)

[staff profile] mark 2014-07-27 05:55 pm (UTC)(link)
+1

I would suggest that we go ahead and just force push master back to an empty readme file that has links to documentation, where to get the real branch, etc. I think that's much cleaner than having someone check out two year old code when they pull the repository.
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2014-07-29 03:29 pm (UTC)(link)
It feels weird, almost heretical to force push master branch to empty. But done!
mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)

[staff profile] mark 2014-07-29 07:45 pm (UTC)(link)

Yay! Thank you! :)

stormerider: (Coding - DW)

[personal profile] stormerider 2014-07-27 06:11 pm (UTC)(link)
I thought that develop was where the code got changed, but master was what got pushed to the site?
foxfirefey: A fox colored like flame over an ornately framed globe (Default)

[personal profile] foxfirefey 2014-07-27 06:12 pm (UTC)(link)
It was the original plan but I think it never ended up getting updated.

[personal profile] alexbayleaf 2014-07-31 05:55 am (UTC)(link)
On Growstuff, we use "dev" for developing against and "master" as our production/latest stable branch.

We have had a recent problem where people who have taken git tutorials expect to be using "master" all the time. This leads them to pull from master instead of dev when updating their own development branches, and things get wacky.

This may or may not occur with DW, but I just wanted to put it out there.