Tortoisehg one step commit push - how and where is the log file

Iam using win xp with Tortoisehg 2.3. I use a bit bucket to backup my personal source code. (rarely for proper version control, more like a backup storage). Right now, I have to right-click on my repo, select a commit, and then enter a commit message (I just want to copy the same message that I used last time, there is a drop-down menu for that), and then click commit. Then I again right-click and select the synchronization and go to this option to finally click. I could use a workbench and do something like that. I want to optimize this process, so I decided to just write a bat bat script to commit and click. When I press Tortoisehg, it spits out the hg command in the window, and you can see and cut it and paste it from here. For fixation, he does not show what he is really doing under the hood. When I used TortoiseSVN for a long time, I remember that there was a log file in which all svn commands were saved for debugging. So I started looking for the TortoiseHg log file.

Does anyone know:

1) Is there a log file in Tortoisehg somewhere where it stores all the mercurial commands executed complete with all command line parameters?

2) Is there a better way to make a one-stage fixer (via Tortoisehg gui or bat or some add-on / extension, etc.)?

considers

+8
mercurial tortoisehg mercurial-extension mercurial-hook
source share
2 answers

1) Is there a log file in Tortoisehg somewhere where it stores all the mercurial commands executed complete with all command line parameters?

TortoiseHg is actually not very connected with TortoiseSVN - the two projects have almost no code and are developed by different groups. So I don’t think there is a log file for TortoiseHg, although TortoiseSVN has one.

2) Is there a better way to make a one-stage fixer (via Tortoisehg gui or bat or some add-on / extension, etc.)?

You can adjust the binding after commit. Add this to the .hg\hgrc for your repository (create the file as needed):

 [hooks] post-commit = hg push 

This way you will run hg push after each commit, even when the commit is done from TortoiseHg.

+9
source share

Actually in TortoiseHg there is an option:

  • In the Commit window, click the Options button next to the Copy Message button that you used.
  • A window will appear with several parameters - the third is "Push After Commit". Mark it.
  • Enter "default" in the box next to the option
  • Click "Save to Repo" to save it next time

Now he will click on the default target button every time you make a transaction with TortoiseHg. It should be noted that this will not lead to automatic clicking if you pass from the command line while Martin's solution will be.

+21
source share

All Articles