Anonymous | Login | Signup for a new account | 2012-09-13 19:32 PDT |
Main | Blog | My View | View Issues | Change Log | Roadmap | IRC Chat | Repositories | Scrum Board |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||
089 | Source Integration | [All Projects] General | public | 2010-01-26 05:52 | 2011-10-25 04:19 | ||||||
Reporter | David Hicks | ||||||||||
Assigned To | |||||||||||
Priority | normal | Severity | feature | Reproducibility | N/A | ||||||
Status | new | Resolution | open | ||||||||
Product Version | 0.13 | ||||||||||
Target Version | Fixed in Version | ||||||||||
Summary | 089: New HgWeb plugin (for Mercurial) | ||||||||||
Description | I'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. | ||||||||||
Tags | No tags attached. | ||||||||||
Attached Files | |||||||||||
![]() |
|
David Hicks (reporter) 2010-01-26 06:07 |
My HgWeb branch: http://git.mantisforge.org/w/source-integration/dhx.git?a=shortlog;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. |
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?: REV="$2" URL="http://path/to/mantis/plugin.php?page=Source/checkin [^] PROJECT="Repository Name" CURL=/usr/bin/curl ${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. |
![]() |
|||
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 |