Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

Redmine Mercurial Overhaul

http://www.redmine.org/issues/4455

It does never change database schema, so we don't need to migrate db. And it reduces the number of hg calls, which means it must be as fast as the 0.9-stable.

It implements or fixes:

  • Tag/branch support, #1981
  • File size issue, #3421
  • Node ID instead of revision number, #3724
  • Diff of changeset can be wrong if the previous changeset isn't the parent.
  • Changesets should be ordered by revision number instead of committed date. This happens to fix #3449, which is caused by wrong latest_changeset. In DVCS, the latest committed date does not mean the latest changeset.
  • Hgrc support, #6515, created by Alessio.

Limitations:

  • Some test cases may not work.
  • Some codes are badly implemented. I need to clean up them.
  • Maybe it lacks compatibility with older Mercurial clients. It uses helper extension to fetch file entries, sizes, tags, branches, etc. at once, but it's yet tested, say, with Mercurial 0.9.5. BTW, this extension is based on Alessio's, thanks!, but I mangled it too heavily. :)
  • We can reduce bunch of database queries.

How to apply these patches:

Get Redmine from SVN (requires hgsubversion):
% hg clone svn+http://redmine.rubyforge.org/svn/ redmine
% cd redmine
Switch to stable branch:
% hg update 1.0-stable
Get and apply patches:
% hg clone http://bitbucket.org/yuja/redmine-mq-issue4455/.hg/patches/ .hg/patches
% hg qpush -a

If you don't have hgsubversion, try the following repo maintained by Toshi:

% hg clone http://bitbucket.org/marutosi/redmine-hgsubversion-allbranches-clean

See also http://www.redmine.org/boards/1/topics/12312.

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.