Default paths

pdavidson's Avatar

pdavidson

06 Feb, 2015 11:32 PM

Anton:
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

    Bump...
    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

    Duh....
    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

Generic

? 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

21 Sep, 2019 09:28 PM
21 Aug, 2019 09:07 AM
30 Jul, 2019 08:59 PM
31 May, 2019 02:29 PM
26 Nov, 2018 01:47 PM

 

16 Nov, 2018 07:51 PM
06 Nov, 2018 04:30 PM
24 Oct, 2018 07:57 AM
20 Jul, 2018 11:07 PM
05 Jul, 2018 10:53 AM
27 May, 2018 01:33 AM