Notice: this is a static mirror for historical purposes.

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
089Source Integration[All Projects] Generalpublic2010-01-26 05:522011-10-25 04:19
ReporterDavid Hicks 
Assigned To 
Product Version0.13 
Target VersionFixed in Version 
Summary089: New HgWeb plugin (for Mercurial)
DescriptionI've made a new plugin to work with the HgWeb interface bundled with Mercurial. It behaves a little bit like Gitweb, hence I have based this new plugin off the existing Gitweb plugin.

At the moment the only feature missing is the ability for this plugin to read a list of files added/modified/deleted from a changeset. The reason is that unlike Gitweb, HgWeb doesn't give us an easy way to work out which files have been added/deleted/changed. I'll have to write some code to look at the diff manually to see which files have been modified. To determine whether files have been added/deleted we have to look at the --- and +++ lines in the diff's to find references to /dev/null.

The other thing I need to check is that branches and merge commits (with multiple parents) still work OK.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
User avatar (078)
David Hicks (reporter)
2010-01-26 06:07

My HgWeb branch:;h=refs/heads/hgweb [^]

You can test it out by searching Google for "hgweb" to bring up some projects using hgweb, then try importing a small project into Mantis.

I've noticed that it is still *very* slow at importing issues, but I guess you'd expect that when importing via HTTP. It'd be good to make a script that can push commits locally at SourceIntegration so that HgWeb can parse them quickly without HTTP overheads.
User avatar (329)
MarcoW (reporter)
2011-10-25 04:19

Is this plugin still alive?
How could a mercurial commit hook look like? I have looked at the example hook from the WebSVN, so the script could be like this?:


URL="http://path/to/mantis/plugin.php?page=Source/checkin [^]
PROJECT="Repository Name"


${CURL} -d "repo_name=${PROJECT}" -d "data=${REV}"

But in mercurial, how must the data variable be filled? In the commit function from the SourceHgWeb.php are several split commands.
So i don't know how it must be filled correctly.

- Issue History
Date Modified Username Field Change
2010-01-26 05:52 David Hicks New Issue
2010-01-26 06:07 David Hicks Note Added: 078
2011-10-25 04:19 MarcoW Note Added: 329

Copyright © 2000 - 2012 MantisBT Group
Time: 0.1177 seconds.
memory usage: 8,323 KB
Powered by Mantis Bugtracker

hosted with