Default paths
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.
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
1 Posted by pdavidson on 26 Feb, 2015 11:56 PM
Bump...
Any help here?
2 Posted by pdavidson on 27 Feb, 2015 12:33 AM
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 Posted by pdavidson on 27 Feb, 2015 12:36 AM
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.
pdavidson closed this discussion on 27 Feb, 2015 12:36 AM.