Project

General

Profile

Actions

Patch #1199

closed

Mercurial adapter

Added by Pierre Paysant-Le Roux almost 16 years ago. Updated almost 16 years ago.

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

0%

Estimated time:

Description

I spent some time on the Mercurial adapter. I made two changes that I purpose to you :

  • I wrote a new revisions method that parses changesets with only one call to the hg program. I use a template that makes hg output the changelog in XML. I put the templates in extra/mercurial. There are two templates because the templating syntaxe changed a bit with Mercurial 1.0. I did not make benchmarks but I think it's slightly faster than the actual method. This new method also fetch informations about copied files.
  • I made changes on the entries method to be able to browse the repository at any revision. The actual method cannot list directories that do not exist in the present revision.

I tested my code on Linux with Mercurial 0.9.5 and on Windows with Mercurial 1.0.


Files

redmine-patch (10.3 KB) redmine-patch Le patch Pierre Paysant-Le Roux, 2008-05-07 11:53
redmine-patch (10.3 KB) redmine-patch Pierre Paysant-Le Roux, 2008-05-20 19:14
patch-1199_against_r1441.patch (9.63 KB) patch-1199_against_r1441.patch Frédéric Moulins, 2008-05-21 12:04
patch-redmine-mercurial.patch (11.8 KB) patch-redmine-mercurial.patch Pierre Paysant-Le Roux, 2008-05-30 16:24
patch-mercurial-adapter.patch (15.6 KB) patch-mercurial-adapter.patch Mercurial Adapter Pierre Paysant-Le Roux, 2008-06-03 20:01

Related issues

Related to Redmine - Defect #1241: Mercurial : Don't browse latest version after a 'hg push'Closed2008-05-15

Actions
Actions

Also available in: Atom PDF