Feature #7246

Handle "named branch" for mercurial

Added by Thomas Capricelli almost 7 years ago. Updated over 6 years ago.

Status:ClosedStart date:2011-01-07
Priority:NormalDue date:
Assignee:Toshi MARUYAMA% Done:

0%

Category:SCM
Target version:1.2.0
Resolution:Fixed

Description

Mercurial has a concept of branches inside the same repository (as opposed to "use another repository as branch"). Currently, redmine only 'sees' the main branch and not the other ones.

Handling the named branches would mean:
  • see commits from those branches in the repository tab (/projects/xx/repository/, /projects/xx/repository/revisions, individual file revision logs, ...)
  • use commits on those branches when matching for 'fixes' 'refs' and other actions

hg-root.png (75.9 KB) Toshi MARUYAMA, 2011-04-30 08:26

hg-1.1-stable-rev.png (95.4 KB) Toshi MARUYAMA, 2011-04-30 08:26

hg-1.1-stable-url-path.png (94.6 KB) Toshi MARUYAMA, 2011-04-30 08:26

hg-1.1-stable-file.png (70.4 KB) Toshi MARUYAMA, 2011-04-30 08:26


Related issues

Related to Redmine - Defect #4924: mercurial reader disregard information from non-default b... Closed 2010-02-24
Related to Redmine - Feature #4455: Mercurial overhaul Closed 2009-12-21
Related to Redmine - Feature #1981: display mercurial tags Closed 2008-10-02
Related to Redmine - Defect #7984: Confusing revisions links on repository root New 2011-03-24
Related to Redmine - Feature #5083: Add the ability to view a range of revisions New 2010-03-15
Related to Redmine - Feature #5386: Branch/Tags in Changeset Description New 2010-04-27
Related to Redmine - Feature #2120: Different views between develop and funcional New 2008-10-31
Related to Redmine - Feature #3909: Mercurial: show repository graphic history Closed 2009-09-23
Related to Redmine - Feature #5501: Git: Mercurial: Adding visual merge/branch history to rep... Closed 2010-05-11
Related to Redmine - Feature #539: Repository browser per Project Version. New
Related to Redmine - Patch #6159: Subversion: latest changesets performance improvement. New 2010-08-17
Related to Redmine - Feature #5279: Branch level associations between projects and repositories. New 2010-04-09
Related to Redmine - Feature #1311: Subversion: Show revision histories for branches New 2008-05-27
Related to Redmine - Patch #3357: Revision log relative to current location in the Reposito... New 2009-05-13
Related to Redmine - Defect #3943: Subversion: Directory revision list contains faulty revis... New 2009-09-29
Related to Redmine - Feature #1406: Browse through Git branches Closed 2008-06-09

Associated revisions

Revision 4867
Added by Toshi MARUYAMA almost 7 years ago

scm: mercurial: entries unit lib test for named branch (#7246).

Revision 4871
Added by Toshi MARUYAMA almost 7 years ago

scm: mercurial: temporary disable tags and branches at model (#1981, #7246, #4455).

Until latest_changesets supports tags and branches.

Revision 4874
Added by Toshi MARUYAMA almost 7 years ago

scm: mercurial: support named branches at adapter (#7246).

Contributed by Yuya Nishihara.

Revision 4875
Added by Toshi MARUYAMA almost 7 years ago

scm: mercurial: unit test for named branches at adapter (#7246).

Revision 4989
Added by Toshi MARUYAMA over 6 years ago

scm: mercurial: wrap revison, tag and branch with URL encoding for entries (#4455, #1981, #7246).

Revision 5101
Added by Toshi MARUYAMA over 6 years ago

scm: mercurial: add new "rhlog()" function in helper extension (#7246, #4455).

For latest changesets supporting named branch.

Revision 5102
Added by Toshi MARUYAMA over 6 years ago

scm: mercurial: add new "nodes_in_branch()" method in adapter (#7246, #4455).

For latest changesets supporting named branch.

Revision 5103
Added by Toshi MARUYAMA over 6 years ago

scm: mercurial: add tests for "nodes_in_branch()" method in adapter (#7246, #4455).

Revision 5108
Added by Toshi MARUYAMA over 6 years ago

scm: mercurial: remove unused parameters from "nodes_in_branch()" method in adapter (#7246, #4455).

Revision 5112
Added by Toshi MARUYAMA over 6 years ago

scm: mercurial: wrap revision of cat and annotate with URL encoding (#1981, #7246).

Revision 5113
Added by Toshi MARUYAMA over 6 years ago

scm: mercurial: prepare test of wrapping revision of cat and annotate with URL encoding (#1981, #7246).

Revision 5115
Added by Toshi MARUYAMA over 6 years ago

scm: mercurial: add test of non ASCII named branch in unit adapter test (#7246).

Revision 5117
Added by Toshi MARUYAMA over 6 years ago

scm: mercurial: prepare tests of named branch and tag in unit model test (#1981, #7246).

Revision 5118
Added by Toshi MARUYAMA over 6 years ago

scm: mercurial: prepare tests of named branch and tag in functional test (#1981, #7246).

Revision 5127
Added by Toshi MARUYAMA over 6 years ago

scm: mercurial: latest changesets support named branch (#7246).

Revision 5128
Added by Toshi MARUYAMA over 6 years ago

scm: mercurial: add test of latest changesets support named branch in unit model test (#7246).

Revision 5129
Added by Toshi MARUYAMA over 6 years ago

scm: mercurial: branches and tags are enable in model (#1981, #7246).

Revision 5130
Added by Toshi MARUYAMA over 6 years ago

scm: mercurial: add named branch test in functional test (#7246).

Revision 5218
Added by Toshi MARUYAMA over 6 years ago

scm: backout r5213. do not display both 'View all revisions' and 'View revision' links (#7984, #7246).

Git and Mercurial support branch.

Git in repository root shows master branch.
Git master branch does not have all revisions.

Mercurial default branch is default branch.
Mercurial shows tip in repository root.

Mercurial does not treat directory. "hg log DIR" costs high.
Getting correct limited changesets in sub directory and branch is very heavy.
So, if there is no recent revision in sub directory and branch,
no changeset shows.

History

#1 Updated by Toshi MARUYAMA over 6 years ago

  • % Done changed from 0 to 70

#2 Updated by Toshi MARUYAMA over 6 years ago

We finished implementing the feature of Mercurial named branches browsing based on git branches implementation in #1406.

These are images of Redmine hgsubversion mirror.
https://bitbucket.org/redmine/redmine-all




There is a discussion about the top page of a repository.
Please see #7984.

use commits on those branches when matching for 'fixes' 'refs' and other actions

I can not understand your request.
Please create new issue with descriptions in detail.

Also available in: Atom PDF