プロジェクト

全般

プロフィール

Vote #66506

未完了

Improve Bazaar repositories error message in case to use shared repository

Admin Redmine さんがほぼ4年前に追加. ほぼ4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
SCM_3
開始日:
2009/02/21
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
32
issue_org_id:
4741
author_id:
11764
assigned_to_id:
11192
comments:
8
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

This was originally miscategorized as Feature #2799.
This is a common use case as it prevents the standard trunk/branch/tag development structure.

A shared repository created with @bzr init-repo@ errors when running @ruby script/runner "Repository.fetch_changesets" -e production I get these messages back:@
@bzr: ERROR: Not a branch: "[...]/project_container/.bzr/branch/".@
@bzr: ERROR: Not a branch: "[...]/project_container/.bzr/branch/".@

If we point at a sub-tree, there's still no support for branches.

There are 2 ways to identify the shared repository:

  • bzr info will list 'shared repository: .'
  • .bzr/repository exists.

If the path points to a shared repo, some file tree should be built.

Branches can be identified by a similar combination of techniques:

  • bzr info will list the root repository as 'shared repository'
  • .bzr/branch exists.

Sub branches:

  • bzr info will list the root repository as 'shared repository' and the parent branch as 'parent branch'

As an example, let's examine the following repo:
[...]

In summary, if the path is a repo, scan the directory tree for directories containing .bzr/branch and run bzr info on those directories. Use that output to find out which branch is the parent and use that information to build the element tree.

I don't know how to do this in ruby, but hopefully someone can take this analysis and put something together.


journals

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Is there a way how I can get your changes into my Redmine 1.2.0? Or can I simply copy bazaar_adapter.rb and abstract_adapter.rb from redmine/trunk to my Redmine 1.2.0?
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,New,2799,Support for Bazaar's shared reposetories (created with init-repo)
relates,New,7984,Confusing revisions links on repository root
relates,Closed,9129,Improve wording of Git repository note at project setting

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0