Mercurial: Can I rename a branch?

Update to the stiging branch and create a new branch off of it. Then close the old branch. In summary: hg update stiging hg branch staging hg commit -m”Changing stiging branch to staging.” hg update stiging hg commit –close-branch -m”This was a typo; use staging instead.” hg push –new-branch

How do I delete all untracked files from my working directory in Mercurial?

Add the Mercurial Extension called purge. It is distributed by Mercurial. This extension adds a “purge” command to “hg” that removes files not known to Mercurial. i.e. untracked Files. So your command would be, hg purge It is not enabled by default, maybe to avoid accidentally removing files that you forgot to add. To install … Read more

How to save username and password with Mercurial?

You can make an auth section in your .hgrc or Mercurial.ini file, like so: [auth] bb.prefix = https://bitbucket.org/repo/path bb.username = foo bb.password = foo_passwd The ‘bb’ part is an arbitrary identifier and is used to match prefix with username and password – handy for managing different username/password combos with different sites (prefix) You can also … Read more

Mercurial stuck “waiting for lock”

When “waiting for lock on repository”, delete the repository file: .hg/wlock (or it may be in .hg/store/lock) When deleting the lock file, you must make sure nothing else is accessing the repository. (If the lock is a string of zeros or blank, this is almost certainly true).

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