Project

General

Profile

Actions

Defect #9779

closed

Fetching mercurial/bicbucket changesets from redmine doesn't work

Added by Simen Endsjø over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

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.

Actions #1

Updated by Toshi MARUYAMA over 12 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

Redmine does not provide a feature to sync repository.

Actions #2

Updated by Simen Endsjø over 12 years ago

With sync you mean pull? So fetch_changesets just does an "hg update"?

Actions #3

Updated by Toshi MARUYAMA over 12 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.

Actions #4

Updated by Simen Endsjø over 12 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.

Actions #5

Updated by Toshi MARUYAMA over 12 years ago

You can create or update wikis.
I am not good at writing English documents.

Actions #6

Updated by Simen Endsjø over 12 years ago

Ok, done.

Actions #7

Updated by Toshi MARUYAMA over 12 years ago

Simen Endsjø wrote:

Ok, done.

Thank you!

Actions

Also available in: Atom PDF