Create a new branch at a certain revision

Preface: Mercurial branches are two types: named branch anonymous Named Branch In order to get named branch BRANCHNAME, starting at REV hg update REV hg branch BRANCHNAME … hg commit commit is a must, because the branch will not exist in the repository until the next commit as noted in hg help branch Anonymous branch … Read more

hg force update to new files

hg update –clean This will update your working directory with the newest version of files in the current branch. Please note that this command will discard all existing changes in your working directory. If you meant “can I get a fresh copy of each and every file from the repository” just delete all files in … Read more

How to merge to get rid of head with Mercurial command line, like I can do with TortoiseHg?

According to TortoiseHG’s source, when you check Discard all changes from merge target (other) revision, it uses the hg debugsetparents command: hg debugsetparents REV1 [REV2] manually set the parents of the current working directory This is useful for writing repository conversion tools, but should be used with care. Returns 0 on success. use “hg -v … Read more

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