Automatic methods to resolve .moved directories

Bug #143977 reported by Yuri Baburov
2
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned
Breezy
Triaged
Medium
Unassigned

Bug Description

Currently there's no easy method to resolve .moved directories created by bzr merge.
What do you suggest user to do, if she create the same directory with the same or similar files in two diverged branches, commit it and will try to merge branches?
The best solution I can think of is the command "resolve --merge <directory>".

(How to reproduce - https://bugs.launchpad.net/bugs/34956)

Revision history for this message
Yuri Baburov (buriy) wrote :

And this command could work with moved files also!

description: updated
Revision history for this message
Aaron Bentley (abentley) wrote :

Please see "bzr help conflicts". Resolving a filename conflict requires human intelligence. If it did not, it would not be emitted as a conflict.

Revision history for this message
Aaron Bentley (abentley) wrote :

Sorry, the documentation is in the user guide: http://doc.bazaar-vcs.org/bzr.0.91/en/user-guide/conflicts.html

Revision history for this message
Yuri Baburov (buriy) wrote :

>Please see "bzr help conflicts". Resolving a filename conflict requires human intelligence.
Sorry, but so what? :)
Sometimes this intelligence is to merge old .moved directory with newly created.
Join all files inside, as they are in fact different versions of the same folder.
Intelligence is only to say that directories are actually the same directory.
"If you wish, you can rename either one of these files, or combine their contents. " (from docs)
How do I combine their contents?
I would like to be able to transform path conflict to content conflict(s).
Or else I will have to use command line diff for them instead of my editor features and 3-way diff!

p.s. Maybe amend bug title a bit? Seems current one confused you.

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

I don't think this can be totally automatic, otherwise we wouldn't have conflicted in the first place, but we could certainly have commands to help resolve conflicts.

Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
Changed in brz:
status: New → Triaged
importance: Undecided → Medium
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.