In Mercurial what’s the difference between hg graft and hg rebase

hg graft allows “cherry-picking,” as you noted in your question. For example, you can run hg graft -D “2085::2093 and not 2091” to copy only some changes from another revision. By comparison, hg rebase (with or without –keep) will grab whatever changeset you specify and all of its decendant changes. Also, rebase allows you to … Read more

Easiest way to split a change set in mercurial

There are two ways to split a changeset, depending on whether or not you’ve already committed the changes that you wish to split: To selectively commit changes from your working directory (if you haven’t committed your changes yet): Use hg record. (This is similar to using git commit –patch.) To split an existing changeset (if … Read more

Mercurial log with one-liners

You can use hg log with a –template option, e.g.: hg log –template ‘{node|short} | {date|isodatesec} | {author|user}: {desc|strip|firstline}\n’ This should show something like this (example from the GNU Emacs trunk I converted locally to an hg repository): $ hg log –limit 5 –template ‘{node|short} | {date|isodatesec} | {author|user}: {desc|strip|firstline}\n’ 36ab2e3f8ebd | 2010-09-08 16:54:00 +0200 … Read more

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