Edgewall Software
Modify

Opened 19 years ago

Closed 16 years ago

Last modified 16 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@… Branch:
Release Notes:
API Changes:
Internal 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 18 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 18 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 by eric-trac@…, 19 years ago

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 by eric-trac@…, 19 years ago

Cc: eric-trac@… added

comment:3 by Christopher Lenz, 19 years ago

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

comment:4 by pjd@…, 19 years ago

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

comment:5 by soloturn@…, 19 years ago

if voting works like that here: +1

comment:6 by Matthew Good, 19 years ago

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

comment:7 by Christian Boos, 18 years ago

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 by sean at dague dot net, 18 years ago

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

comment:9 by Christian Boos, 18 years ago

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…

by Christian Boos, 18 years ago

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)

by Christian Boos, 18 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!

comment:10 by Christopher Lenz, 18 years ago

Milestone: 1.0

This should probably be taken to trac-hacks?

comment:11 by Christian Boos, 18 years ago

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.

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

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.

in reply to:  12 comment:13 by Christian Boos, 18 years ago

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 by anonymous, 16 years ago

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 by anonymous, 16 years ago

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 by Jeroen Ruigrok van der Werven, 16 years ago

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 by Christian Boos, 16 years ago

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. Next status will be 'reopened'.
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.