Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6947815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:44:30+00:00 2026-05-27T13:44:30+00:00

I have very recently started using a Bzr shared repository to manage my project.

  • 0

I have very recently started using a Bzr shared repository to manage my project. I derived this by branching from a standalone repository to which I had been up to now making incremental commits. This new shared repository has a ‘/trunk, /branches’ layout:

--xxxx_shared
  --trunk
    --src
    --lib
    --doc
  --branches

So I merged some changes from the trunk of this repository into the main line, but when I later attempted to push some further changes from the trunk I got an error stating that the two branches had diverged. I had committed the merge into the main line, and so there was a divergence. But how does one avoid this, given that one has to commit any merge? Or am I seriously misunderstanding things?

In order to resolve this conflict I merged from the main line BACK into the shared trunk branch. I suspect this was a mistake, since I now have a revision history for /xxxx_shared/trunk which looks like this:

    ------------------------------------------------------------
    revno: 74 [merge]
    committer: Chris <xxxxxxxx@yahoo.com>
    branch nick: trunk
    timestamp: Wed 2011-12-14 03:47:49 +0000
    message:
      Committing merge from parent branch.
        ------------------------------------------------------------
        revno: 71.1.1 [merge]
        committer: Chris <xxxxxxxx@yahoo.com>
        branch nick: mainline
        timestamp: Tue 2011-12-13 21:13:06 +0000
        message:
          Merged WinAPI toolbar updates from /projects/xxxx_shared/trunk.
    ------------------------------------------------------------
    revno: 73
    committer: Chris <xxxxxxxx@yahoo.com>
    branch nick: trunk
    timestamp: Wed 2011-12-14 03:33:35 +0000
    message:
      Updated the WinAPI toolbar button code...

So 71.1.1 above has been merged from the main line, and refers to the merge FROM /projects/xxxx_shared/trunk (shared repo) TO the main line.

I hope all this is clear. But how can I resolve this issue so as to recover a linear line of development? And what would be a conservative ‘best practice’ with Bzr so as to avoid this kind of thing in the future? I still have an unmodified copy of the original standalone repository, so I can always go back to that and start over again, if need be.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:44:31+00:00Added an answer on May 27, 2026 at 1:44 pm

    If you want to have “main line” as exact mirror of the “trunk” you should only push from trunk to main line, or better pull from trunk into main line:

    cd mainline
    bzr pull /path/to/repo/trunk
    

    If you have diverged branches situation then you need to use command bzr missing to understand why there is divergence occurs, after that merge to trunk, and execute the pull command above. Thus your main line will be exact copy of trunk.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've recently started using GNU Screen but have run into a very annoying problem.
I have recently started working on a very large C++ project that, after completing
I have started using django very recently . I am building a service with
I have just started C very recently and I have been asked to answer
I have recently been working with someone on a project that is very ajax
I've recently started using Gradle and replacing my existing Maven-based projects. I have had
I have recently started using the Rackspace Cloudfiles CDN (Limelight), about which I have
I have recently started learning C++ and coming from a Ruby environment I have
I'm fairly new to MVVM, and I have recently started a project cleaning up
Hello i have recently started using vim editor ( actually the plugin for netbeans

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.