Default paths

pdavidson's Avatar


06 Feb, 2015 11:32 PM

I was under the impression that the default path defined in [paths] was to be used for pulls and pushes but not commits?
Is that correct?
Seems like I'm wrong because when I follow the HgLab suggestions for either cloning a repo or pushing up to the server where i have a newly created repo and I run the echo commands to create the
default = http://somename@MyServer/hglab/hg/MyProject/MyRepo (this is pulled down with the clone method)

The issue is when I add files and commit.
I thought the commit would only commit to the local repo.
That the changes wouldn't go up to the server until I issue a push command.
What I see is that when I do the commit, then changes show up on the server side.

If modify the default line so that I'm defining only the default push:
default-push = http://somename@MyServer/hglab/hg/MyProject/MyRepo
then commits work as I would expect, that is, they commit locally and don't show up on MyServer until I issue the push command.

I've run a lot of tests and verified this.
I do have issues with having no default there, I get a TortoiseHg error about default not found.
I can set the default = ..\MyRepoName and I don't get the default not found, however, when I do the commit, THg hangs.
and when I close it, asks if I want to stop the commit.
Put the File Explorer icons show that the newly added file has been committed and a push to the server then shows the new file in the repo on MyServer.

Thanks for any clarification.

  1. 1 Posted by pdavidson on 26 Feb, 2015 11:56 PM

    pdavidson's Avatar

    Any help here?

  2. 2 Posted by pdavidson on 27 Feb, 2015 12:33 AM

    pdavidson's Avatar

    I believe this has been solved.
    When I used TortoiseHg, the commit was showing up in the HgLab server.
    When I used a command line, it did not.

    TortoiseHg had a setting in the Commit window under options where:
    Push after Commit: was checked ON

    This was driving me crazy... The commit behavior made no sense.
    My default global settings in TortoiseHg had Push After Commit set to default.
    That's an odd default. Makes it work like subversion and not a DVCS!

    It appears my TortoiseHg setup is somewhat messed up.
    My says default and default is supposed to be No Push.

    Hope this helps some other poor confused person.

  3. 3 Posted by pdavidson on 27 Feb, 2015 12:36 AM

    pdavidson's Avatar

    My final fix, set that item to unspecified. The default case, at least on my machine, appears to be True when it should F according to the docs.

  4. pdavidson closed this discussion on 27 Feb, 2015 12:36 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

12 Jan, 2023 12:25 PM
10 Jan, 2023 04:49 PM
03 Aug, 2022 01:49 PM
05 Jul, 2022 07:01 PM
28 Mar, 2022 04:42 PM


21 Jan, 2022 10:43 AM
20 Jan, 2022 10:45 AM
18 Jan, 2022 10:15 AM
19 Mar, 2021 06:13 PM
01 Mar, 2021 02:51 PM
01 Jan, 2021 02:19 AM