Make another branch default?

Just merge feature-branch into default then close feature-branch: $ hg checkout default $ hg merge feature-branch $ hg commit $ hg checkout feature-branch $ hg commit –close-branch There is no more clean and sensible way (that I’m aware of) to “make feature-branch the default”. One thing that wouldn’t be as nice, but you could do, … Read more

List remote branches in Mercurial

The mercurial API allows it: from mercurial import ui, hg, node peer = hg.peer(ui.ui(), {}, ‘http://hg.python.org/cpython’) for name, rev in peer.branchmap().items(): print(name, node.short(rev[0])) The above snippet produces: default aaa68dce117e legacy-trunk b77918288f7d 3.2 4787b9b2f860 3.0 4cd9f5e89061 3.1 5a6fa1b8767f 2.3 364638d6434d 2.2 61b0263d6881 2.1 e849d484029f 2.0 5fd74354d73b 2.7 260f3ad7af4b 2.6 f130ce67387d 2.5 b48e1b48e670 2.4 ceec209b26d4

git branch permissions

Git does not have branch specific permissions. You can either make the whole repository read only to the people or create one private and one public repository and only push the development branch to the public on while keeping the master only in your private repository. Edit: For branch specific permissions, you need a server-side … Read more

Git checkout second remote branch

mygithub/master is a remote branch. To create a local branch based off of that remote branch, you have to use git checkout -b mymaster mygithub/master. Git tries to make this easy for you: if you write git checkout branchname, and branchname only exists in a remote, but not locally, Git will automatically set up a … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)