Re:Show HN: BitKeeper – Enterprise-ready version control, no...
by Annatar on Thursday May 12, 2016 @11:04AM
(#11683885)
I always do a hg diff before I commit. If in spite of that I still screw up, I do a hg rollback, and if I already pushed, I either roll back on all the nodes, or I open a bug, and simply commit a bug fix with a reference to the bug in the bug tracking system. I've been using Mercurial since 2007 and I've yet to use --amend.
I often amend my latest commit as a way to build a set of changes without losing my latest functional change.