Defect #8030

Bazaar integration doesn't notice new commits to repository

Added by Radosław Grzanka over 8 years ago. Updated about 8 years ago.

Status:NewStart date:2011-03-31
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:SCM
Target version:-
Resolution: Affected version:1.1.2

Description

Redmine fetches new revisions from repository to its own database when revision identifier in db is lower then in current branch of repository.

For finding out revision identifier it uses "bzr revno <tree>". However, this number in bazaar is not guaranteed to be unique and may actually decrease(see http://wiki.bazaar.canonical.com/Revision). In this case, system will not notice new entries in history of repository.

Redmine should probably use "revision id" instead of "revision number" or (maybe not better, but I think easier and sufficient) date of last commit.

To get revision id and timestamp of last commit you can do:

bzr log --show-ids -r last:1


Related issues

Related to Redmine - Defect #6681: Mercurial, Bazaar and Darcs auto close issue text should ... Closed 2010-10-15
Related to Redmine - Defect #3724: Mercurial repositories display revision ID instead of cha... Closed 2009-08-10
Related to Redmine - Feature #2799: Support for Bazaar's shared reposetories (created with in... New 2009-02-21
Related to Redmine - Defect #7984: Confusing revisions links on repository root New 2011-03-24

Associated revisions

Revision 5890
Added by Toshi MARUYAMA about 8 years ago

scm: bazaar: add adapter method to get .bzr/branch/branch.conf path from specified path (#2799, #4741, #8030).

Revision 5891
Added by Toshi MARUYAMA about 8 years ago

scm: bazaar: add unit adapter test to get .bzr/branch/branch.conf path from specified path (#2799, #4741, #8030).

Revision 5892
Added by Toshi MARUYAMA about 8 years ago

scm: bazaar: add adapter method to get "append_revisions_only" value from .bzr/branch/branch.conf (#2799, #4741, #8030).

Revision 5893
Added by Toshi MARUYAMA about 8 years ago

scm: bazaar: add unit adapter test to get "append_revisions_only" value from test repository .bzr/branch/branch.conf (#2799, #4741, #8030).

Revision 5894
Added by Toshi MARUYAMA about 8 years ago

scm: bazaar: use explicit return value in adapter branch_conf_path() (#2799, #4741, #8030).

Revision 5895
Added by Toshi MARUYAMA about 8 years ago

scm: bazaar: check not nil in adapter append_revisions_only() (#2799, #4741, #8030).

Revision 5899
Added by Toshi MARUYAMA about 8 years ago

scm: add exception of fetching revisions error in repository model (#5357, #2799, #4741, #8030).

Revision 5932
Added by Toshi MARUYAMA about 8 years ago

scm: bazaar: update test repository (#2799, #4741, #8030).

  • Shared repository with trees (format: 2a)
  • clone original branch to trunk
  • set append_revisions_only = true at trunk/.bzr/branch/branch.conf

Revision 5935
Added by Toshi MARUYAMA about 8 years ago

scm: bazaar: add unit adapter test that shared repository "append_revisions_only" is false (#2799, #4741, #8030).

adapter append_revisions_only() checks whether .bzr/branch/branch.conf exists.

Revision 5936
Added by Toshi MARUYAMA about 8 years ago

scm: bazaar: rename unit adapter test "test_append_revisions_only" to "test_append_revisions_only_true" (#2799, #4741, #8030).

Revision 5937
Added by Toshi MARUYAMA about 8 years ago

scm: bazaar: add unit adapter test that append_revisions_only is false in test shared repository branch (#2799, #4741, #8030).

History

#1 Updated by Etienne Massip over 8 years ago

Is it the same as #6681 ?

#2 Updated by Toshi MARUYAMA over 8 years ago

Please see #2799.

#3 Updated by Radosław Grzanka over 8 years ago

Yes, it seems to be related to #6681 but I don't know how it relates to #2799 except that people tries to make bazaar integration better.

I don't have shared repo or some very complicated setup. If two developers branches one repo and work on their copy they both increment revision numbers. Upon merge, it is not guaranteed that revno will be greater then previously in "central" repo - this assumption is wrong.

#4 Updated by Toshi MARUYAMA about 8 years ago

Trac Hook for Bazaar Repository
http://trac.ultimania.org/trac/bzr-doc-ja/browser/bzr-trac-hook/trunk/README_ja#L71

Japanese:
Tracと連携する場合、Bazaarはappend_revisions_onlyオプションを指定して運用する必要があります。

English:
If you want to work with Trac, Bazaar needs to set append_revisions_only option.

Also available in: Atom PDF