Edgewall Software
Modify

Opened 12 years ago

Closed 9 years ago

Last modified 9 years ago

#1847 closed enhancement (fixed)

My vote for a Mercurial backend

Reported by: daniel@… Owned by: Christian Boos
Priority: high Milestone: 0.11
Component: version control Version: devel
Severity: major Keywords: mercurial
Cc: eric-trac@…
Release Notes:
API Changes:

Description

While reading VersioningSystemBackend I noticed that no one had file a ticket yet for a Mercurial backend. As the wiki page indicates, Mercurial(hg) will give more information into what it does. Interesting to note that it is written in Python. Hope the new plugin system might allow for this type of integration.

Attachments (2)

TracMercurial-0.1-py2.4.egg (14.6 KB ) - added by Christian Boos 12 years ago.
The hg-plugin (developed on windows with ActiveState Python 2.4.1, I don't know yet if the egg will work on another platform/version)
vc-refactoring_for_trac-0.9.patch (28.8 KB ) - added by Christian Boos 12 years ago.
The vc-refactoring changes , as of r2472 + r2490, which can be applied on Trac 0.9. Should handle the creation of new Trac environments correctly!

Download all attachments as: .zip

Change History (19)

comment:1 Changed 12 years ago by eric-trac@…

I'm adding my vote for Mercurial here too. I might even take it upon myself to do some work for this. I would even rather this over Perforce as I've written myself some scripts that will keep a Mercurial repository in sync with a Perforce one.

comment:2 Changed 12 years ago by eric-trac@…

Cc: eric-trac@… added

comment:3 Changed 12 years ago by Christopher Lenz

Component: generalversion control
Owner: changed from Jonas Borgström to Christopher Lenz

comment:4 Changed 12 years ago by pjd@…

Another vote here. Only a lack of time keeps me from jumping in and helping out, at the moment.

comment:5 Changed 12 years ago by soloturn@…

if voting works like that here: +1

comment:6 Changed 12 years ago by Matthew Good

No, we don't really use a voting system here.

comment:7 Changed 12 years ago by Christian Boos

Milestone: 1.0
Owner: changed from Christopher Lenz to Christian Boos
Priority: normalhigh
Severity: normalmajor
Status: newassigned

I've got a working version of Trac+Hg. No major issues, but I need to make a proper plugin before making the code available (next Wednesday).

Related versioncontrol generalization work will go here:

source:branches/cboos-dev/vc-refactoring

and the Mercurial GPL plugin will go here:

source:branches/cboos-dev/hg-plugin

comment:8 Changed 12 years ago by sean at dague dot net

Another vote for Mercurial plugin! Can't wait to see the code released. :)

comment:9 Changed 12 years ago by Christian Boos

Have a look at r2472 and check for the documentation in TracMercurial.

I'll also upload a patch for the vc-refactoring branch against 0.9 here, as well as drop an egg or two…

Changed 12 years ago by Christian Boos

Attachment: TracMercurial-0.1-py2.4.egg added

The hg-plugin (developed on windows with ActiveState Python 2.4.1, I don't know yet if the egg will work on another platform/version)

Changed 12 years ago by Christian Boos

The vc-refactoring changes , as of r2472 + r2490, which can be applied on Trac 0.9. Should handle the creation of new Trac environments correctly!

comment:10 Changed 12 years ago by Christopher Lenz

Milestone: 1.0

This should probably be taken to trac-hacks?

comment:11 Changed 12 years ago by Christian Boos

Well, there's still a vc-refactoring phase 2 awaiting… (see related mails on Trac Dev).

When that's finished, I could host the plugin on Trac Hacks (or somewhere else), but in the meantime, I think it makes sense to keep it close to the (next) vc-refactoring branch.

comment:12 in reply to:  11 ; Changed 11 years ago by Matthew Good

Replying to cboos:

Well, there's still a vc-refactoring phase 2 awaiting… (see related mails on Trac Dev).

When that's finished, I could host the plugin on Trac Hacks (or somewhere else), but in the meantime, I think it makes sense to keep it close to the (next) vc-refactoring branch.

Do we need to keep this ticket open since there's a plugin for this? If there are changes needed in the vc-refactoring I think we can open separate tickets for those issues.

comment:13 in reply to:  12 Changed 11 years ago by Christian Boos

Keywords: mercurial added
Milestone: 0.10
Resolution: fixed
Status: assignedclosed

Replying to mgood:

Do we need to keep this ticket open since there's a plugin for this? If there are changes needed in the vc-refactoring I think we can open separate tickets for those issues.

Ok, we can consider that there's a backend now, see TracMercurial… even if it seriously lacks maintenance and progress… Do anyone know how I could hg clone myself? ;)

I'm setting the milestone to 0.10, as this is the corresponding Trac release for the plugin.

comment:14 Changed 9 years ago by anonymous

Milestone: 0.100.11
Resolution: fixed
Status: closedreopened

how to configure?

http://svn.edgewall.com/repos/trac/sandbox/mercurial-plugin-0.11 I follow all the instructions but always got error:

Warning: Can't synchronize with the repository (Unsupported version control system "hg". Check that the Python support libraries for "hg" are correctly installed.)

comment:15 Changed 9 years ago by anonymous

repository_dir = \hg\code1 repository_type = hg

[components] tracext.hg.* = enabled

[hg] # — Show revision number in addition to the changeset hash show_rev = yes

# — Changeset hash format node_format = short # hex: Show the full SHA1 hash # short: Show a shortened hash for the changesets

— so, repository_type can only be svn , not HG ?

comment:16 Changed 9 years ago by Jeroen Ruigrok van der Werven

Resolution: fixed
Status: reopenedclosed

A better place would be to ask on the mailing lists and not reopen a ticket that has been closed for close to 2 years.

comment:17 Changed 9 years ago by Christian Boos

Right, you should ask on the Trac-user MailingList for support questions, as you'll likely find more people there that had and solved similar installations issues.

You should also have a look into the log, for a meaningful backtrace.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .

 
Note: See TracTickets for help on using tickets.