Defect #4924
closedmercurial reader disregard information from non-default branch
0%
Description
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
branch-1.0 1300:267cf8a7e905
default 1298:a00cb05dd3d2
Files
Related issues
Updated by Toshi MARUYAMA over 14 years ago
- % Done changed from 0 to 90
Please see #4455 - Mercurial overhaul.
Updated by Toshi MARUYAMA over 14 years ago
- % Done changed from 90 to 0
Sorry, This issue is "main" and "stable" repository problem.
I think this issue is related #779.
Updated by Toshi MARUYAMA over 14 years ago
Simple solution is to prepare "main + stable" repository.
http://mercurial.selenic.com/wiki/DeveloperRepos
http://hg.intevation.org/mercurial/crew+main
automatic mix of crew and main (may contain multiple heads)
Updated by Toshi MARUYAMA almost 14 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.
Updated by Thomas Capricelli almost 14 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.
Updated by Toshi MARUYAMA almost 14 years ago
Updated by Thomas Capricelli almost 14 years ago
Ok, i created #7246 and assigned it to you. I hope i did well.
Updated by Toshi MARUYAMA almost 14 years ago
- File TortoiseHg-default.png TortoiseHg-default.png added
- File TortoiseHg-stable.png TortoiseHg-stable.png added
- File thg-history.png thg-history.png added
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