Insufficient documentation of "merge --force"

Bug #767307 reported by Eli Zaretskii
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Martin Pool

Bug Description

The documentation of "bzr merge" says:

  --force Merge even if the destination tree has uncommitted
                        changes.
...
  merge refuses to run if there are any uncommitted changes, unless
  --force is given.

What it does not say is what is the effect of using "merge --force" on the branch with uncommitted changes. Will it overwrite the uncommitted changes, or will it merge the other branch with them, the way "bzr update" does (when updating from a parent branch into a branch that has local changes)?

Without having this information, --force sounds like a dangerous advanture.

Tags: doc easy help merge

Related branches

Revision history for this message
Martin Pool (mbp) wrote :

Thanks for pointing that out. It does indeed merge the source tree into the uncommitted changes; they're not lost. If you want to lose them, shelve or revert first. The reason it's slightly dangerous is that if the merge is very messy (lots of conflicts), you may wish that you'de committed your own changes first.

Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
tags: added: doc easy help merge
Vincent Ladeuil (vila)
Changed in bzr:
assignee: nobody → Martin Pool (mbp)
milestone: none → 2.4b4
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.