On Mon, 21 Jul 2014 21:15:00 -0700, Ross Boylan wrote:
> TortoiseHg 2.4 on Debian GNU/Linux.  I made a commit, which consisted of
> some changes and the addition of 2 files, and then wanted to change the
> comment.  Then I did (all from the GUI) an undo, which created a commit
> that undid the previous commit--not what I was looking for.  Then I
> selected backout (I think--all from memory).  Though I did 2 operations,
> the log window only shows one.

[...]

> Several questions:
> 1) how  do I get the working directory to match my current tip (revision
> 12)?  hg revert?  Is there a way to do it from the tortoise gui?

"hg update -C 12" (Update dialog) to check out the revision 12.

> 2) Is there any way to amend the comment for what is now the tip commit?
> How?  (I have a feeling it's not possible because of the subsequent
> reversing commit and its removal).

Recent versions have "hg commit --ammend" (Commit -> Amend current revision.)

> 3) What would have been the right way to handle my initial goal of
> revising the newly created commit log message (with raw hg or tortoise)?

a. "hg rollback" (Rollback/Undo) and commit again
b. use MQ
c. upgrade to recent Mercurial and TortoiseHg to use amend

Since you are on Linux, it's pretty easy to run Mercurial from source:

% aptitude install python2.7-dev pyqt4-dev-tools
% hg clone http://selenic.com/repo/hg/
% make -C hg local
% hg clone https://bitbucket.org/tortoisehg/thg/
% HGPATH=`pwd`/hg ./thg/thg

For details, see
http://mercurial.selenic.com/wiki/UnixInstall#Build_directory_installation
https://bitbucket.org/tortoisehg/thg/wiki/developers/Linux

> 4) What happened?  In particular, why does the log seem to be missing
> some of the transactions I did?

IIRC, the log of backout dialog is not captured in TortoiseHg 2.4.

Regards,

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Tortoisehg-discuss mailing list
Tortoisehg-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

Reply via email to