Defect #9779
closedFetching mercurial/bicbucket changesets from redmine doesn't work
0%
Description
I'm trying to fetch changesets using sys/fetch_changesets
or script/runner
, but it doesn't work. My repositories is hosted at bitbucket.
My setup:
hg: 2.0.1
redmine: 1.2.2
rails: 2.3.14
thin
nginx
arch linux
(mongrel is my redmine user)
I've added an [auth]
section in /home/mongrel/.hgrc
with the required username/password. In configuration.yml
I've also added scm_mercurial_command: /usr/bin/hg
, and hg is checked as green in redmine. The source repository has the same user as redmine; mongrel.
It works if I try to do this manually (but with some warnings..):
[user@host redmine-testrepo]$ sudo -umongrel hg incoming warning: bitbucket.org certificate with fingerprint xx:xx not verified (check hostfingerprints or web.cacerts config setting) changeset: 2:xx tag: tip user: user date: Mon Dec 12 10:36:25 2011 +0100 summary: enda mer
I tried adding debug logging to production.rb
, but it doesn't log anything about hg
Browsing the repository works.
Updated by Toshi MARUYAMA about 13 years ago
- Status changed from New to Closed
- Resolution set to Invalid
Redmine does not provide a feature to sync repository.
Updated by Simen Endsjø about 13 years ago
With sync you mean pull? So fetch_changesets just does an "hg update"?
Updated by Toshi MARUYAMA about 13 years ago
"sync" is pull or push.
"fetch_changesets" is that Redmine reads a repository and writes to Redmine database.
"hg update" is no need for Redmine.
Redmine reads a repository. "hg update" is for updating a working directory.
Updated by Simen Endsjø about 13 years ago
Ok, thanks. I set up "hg pull" in a bash script and added fetch_changesets after this. Works great. Is this documented btw? I didn't see it in the repository wiki.
Updated by Toshi MARUYAMA about 13 years ago
You can create or update wikis.
I am not good at writing English documents.
Updated by Toshi MARUYAMA about 13 years ago
Simen Endsjø wrote:
Ok, done.
Thank you!