Problems when trying to push to both Mercurial and Git repo
Created originally on Bitbucket by ipoley (Ian Poley)
My goal: Have the hg-git
plugin simultaneously push to an existing, actively maintained Mercurial repo as well as a new, blank Git repo which will only be used for deploying to VSTS.
First, here is my .hgrc file:
[paths]
default = [Path to existing Mercurial repo]
vsts = git+ssh://[Path to new, blank Git repo]
[ui]
ssh = "C:\Program Files\TortoiseHg\lib\TortoisePlink.exe" -ssh -i "C:\Projects\_keys\VSTS private key.ppk" -v -C
[git]
intree = True
mindate = 2018-01-01
[extensions]
hggit = C:\Projects\_Mercurial Extensions\hggit
After making these config changes, I'm running hg push vsts
to push commits to the Git repo. After doing so, a .git
folder gets created in the root (which I think is expected), and the log essentially stops with the following messages before the connection times out:
#!python
Sent public key signature
Access granted
Opening session as main channel
Opened main channel
Started a shell/command
searching for changes
adding objects
Is there a step I'm missing to get this to properly push to Git?
In the interest of transparency, I'm a bit new to Mercurial so please don't assume I know any advanced hg
commands. Additionally, I'm running this on a Windows machine with TortoiseHg
installed. Happy to provide any additional information that you may need to properly answer the question.