我正在尝试编写一个示例程序,该程序使用javahg在项目存储库上获取信息。我在Windows客户端上运行,远程存储库在Linux服务器上。但是,当我尝试获取传入的更改时,它挂起了或者因此给了我一个空捆绑。
django.db.models.Model
相反,如果我克隆远程存储库,一切都很好,因此配置应该正确。
class Mercurial {
static void main(String[] args) {
def projectDir = 'c:/my-workbench/my-project'
RepositoryConfiguration repoConfig = new RepositoryConfiguration()
repoConfig.hgBin = 'c:/Program Files/TortoiseHg/hg.exe'
repoConfig.sshBin = 'c:/opt/putty/plink.exe'
repoConfig.hgrcPath = null
//repoConfig.hgrcPath = 'c:/users/david/mercurial.ini' //nothing changes
def localRepo = Repository.open(repoConfig, new File(projectDir))
IncomingCommand incoming = IncomingCommand.on(localRepo)
//this is the content of the HGRC file in the .hg folder
def remoteRepoURL = 'ssh://hg@9.9.9.9/my-project')
def bundle = incoming.execute(remoteRepoURL)
}
如何从远程存储库获取传入的更改?