Defect #8030
openBazaar integration doesn't notice new commits to repository
0%
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
Updated by Radosław Grzanka over 13 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.
Updated by Toshi MARUYAMA over 13 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.
Updated by Toshi MARUYAMA over 13 years ago
Trunk revnos have become dotted
http://old.nabble.com/Trunk-revnos-have-become-dotted-td31352132.html