mercurial reader disregard information from non-default branch
It took me a while to understand why the bug were not closed in my redmine instance... The problem is that the mercurial SCM stuff only reads information that are on the main branch ("named branches" in mercurial terminology). As a result, changes on other branches are not available:
- on the file browser (this is ok)
- in the history of each file (not good)
- in the global history at the bottom of the /projects/xxx/repository/ page (not good)
- automatic fixes of tickets using "fixes #xx" is not done (not good, especially when the non-default branch is a stable one..)
My repository layout is simple:
% hg branches
#4 Updated by Toshi MARUYAMA over 8 years ago
- Status changed from New to Closed
Description seems like you did history editing, "hg strip", "hg rebase" etc.
Mercurial revision number is sequential from 0 and Redmine 1.1 does not treat Mercurial "named branch".
We will fix inconsistency with Mercurial repository and database at #3724.
But, if you did history editing, you need to delete repository and re-add it at Redmine setting.
And we will support a feature of Mercurial "named branch".
I close this issue.
#5 Updated by Thomas Capricelli over 8 years ago
I did not edit history, not even a rebase. I know that i need to delete/readd the repository if i did. (i have done this several times on other projects).
No, the problem is that 'named branch' were not seen by mercurial, which you seem to acknowledge/agree.
I already follow the ticket #3724 (using revision id instead of changeset seemed so wrong to me...).
So what you say is that you will do it in the future, but you already close my ticket..? This seems a weird approach of project management.... ? Shouldn't the ticket be closed only when the actual modification has been made ?
Anyway, thanks for taking care of improving mercurial support in redmine, this is needed.
#6 Updated by Toshi MARUYAMA over 8 years ago
#8 Updated by Toshi MARUYAMA over 8 years ago
I attach TortoiseHg repository images.
TortoiseHg has two named branches.
Now stable is 1.1.x, default is 1.9.x.
"thg" is only in default branch.
$ LANG=C hg branches default 9824:493a9d3809e9 stable 9818:66fb6e2ff598 (inactive) $ LANG=C hg heads changeset: 9824:493a9d3809e9 tag: tip user: Steve Borho <XXXXXXXXXXXXXXXX> date: Thu Jan 06 23:39:14 2011 -0600 summary: thgrepo: repository locks are symlinks to non-existant files changeset: 9818:66fb6e2ff598 branch: stable parent: 9790:5fa3912d3563 user: Steve Borho <XXXXXXXXXXXXXXXXX> date: Wed Jan 05 21:43:41 2011 -0600 summary: thread: improve SSL error messages