Project

General

Profile

Actions

Patch #31987

open

Add rake task which synchronize all revisions in repositories related with all active projects

Added by Kuniharu AKAHANE about 5 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
SCM
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Hi, there.

Thank you JPL and all who contributed to improving Redmine such an excellent software.

I wrote a rake task patch changesets.rake .
This rake task synchronize all revisions in repositories which related with all active projects.
It is useful when some user mistake to write commit-comment for repository.

  • Use Case
    1. Refs # <- forgot to write issue_id and/or comment.
    2. Refs #xxxxx <- wrong issue_id
    3. <- forgot to write commit

I know Redmine has a feature to add a reference between issue and commit on web pages.
But it does not cover all case, and a bunch of mistakes by a thousand of users on a hundred repositories.
Also when i disconnect and reconnect between active project and repository, those additional reference above will be lost.

Even i fix wrong comments on repository, but it will not sync to redmine repository tab and issue reference.
So, i think it would be nice if i have a synchronize rake task.

( Kouhei Sutou assisted me for writing this patch. Thanks Kouhei Sutou. )


Files

changesets.rake.patch (2.04 KB) changesets.rake.patch Kuniharu AKAHANE, 2019-08-31 07:19
changesets.rake.patch (2.17 KB) changesets.rake.patch Fix a bug: Repository history synchronize will be ignored when issue keywords count in changeset N to 0. Kuniharu AKAHANE, 2019-11-27 04:17
changesets.rake.patch (3.48 KB) changesets.rake.patch Go MAEDA, 2021-03-28 16:56

Related issues

Related to Redmine - Patch #7959: Patch for repository revision update (reload)New2011-03-22

Actions
Actions #1

Updated by Kuniharu AKAHANE about 5 years ago

  • Copied from Patch #31498: Add redmine_plugin_migration generator added
Actions #2

Updated by Go MAEDA about 5 years ago

  • Subject changed from Add rake task which synchronize all revisions in repositories related with all active projects. to Add rake task which synchronize all revisions in repositories related with all active projects
  • Assignee deleted (Go MAEDA)
  • Target version changed from 4.1.0 to Candidate for next major release

Removing the assignee and the target version for now :)

Actions #3

Updated by Kuniharu AKAHANE about 5 years ago

oh, my mistakes.
Could you delete issue relation, please?

Actions #4

Updated by Go MAEDA about 5 years ago

  • Copied from deleted (Patch #31498: Add redmine_plugin_migration generator)
Actions #5

Updated by Kuniharu AKAHANE about 5 years ago

Thanks again.

Actions #7

Updated by Kuniharu AKAHANE almost 5 years ago

I re-upload the patch.
Fix a bug: Repository history synchronize will be ignored when issue keywords count in changeset N to 0.

Actions #8

Updated by Go MAEDA over 3 years ago

Updated the patch.

  • Renamed existing redmine:fetch_changesets to redmine:changesets:fetch in order to improve consistency
  • Added Copyright header
  • Fixed RuboCop offences
Actions #9

Updated by Go MAEDA almost 3 years ago

  • Related to Patch #7959: Patch for repository revision update (reload) added
Actions

Also available in: Atom PDF