Rev 4847: Document how to resolve tag conflicts. (Neil Martinsen-Burrell, in file:///home/pqm/archives/thelove/bzr/%2Btrunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Tue Dec 1 10:22:14 GMT 2009
At file:///home/pqm/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 4847 [merge]
revision-id: pqm at pqm.ubuntu.com-20091201102212-n4fvh6frief0fltd
parent: pqm at pqm.ubuntu.com-20091201094108-g1zkahrmast6h08b
parent: nmb at wartburg.edu-20091125164255-l7xuf1natqgy5sw2
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Tue 2009-12-01 10:22:12 +0000
message:
Document how to resolve tag conflicts. (Neil Martinsen-Burrell,
#213184)
modified:
bzrlib/conflicts.py conflicts.py-20051001061850-78ef952ba63d2b42
bzrlib/help_topics/en/conflicts.txt conflicts.txt-20070723221841-ns3jvwxdb4okn6fk-1
=== modified file 'bzrlib/conflicts.py'
--- a/bzrlib/conflicts.py 2009-03-23 14:59:43 +0000
+++ b/bzrlib/conflicts.py 2009-11-23 03:15:33 +0000
@@ -53,13 +53,12 @@
instead. (This is useful for editing all files with text conflicts.)
Use bzr resolve when you have fixed a problem.
-
- See also bzr resolve.
"""
takes_options = [
Option('text',
help='List paths of files with text conflicts.'),
]
+ _see_also = ['resolve']
def run(self, text=False):
from bzrlib.workingtree import WorkingTree
@@ -82,16 +81,15 @@
before you should commit.
Once you have fixed a problem, use "bzr resolve" to automatically mark
- text conflicts as fixed, resolve FILE to mark a specific conflict as
+ text conflicts as fixed, "bzr resolve FILE" to mark a specific conflict as
resolved, or "bzr resolve --all" to mark all conflicts as resolved.
-
- See also bzr conflicts.
"""
aliases = ['resolved']
takes_args = ['file*']
takes_options = [
Option('all', help='Resolve all conflicts in this tree.'),
]
+ _see_also = ['conflicts']
def run(self, file_list=None, all=False):
from bzrlib.workingtree import WorkingTree
if all:
=== modified file 'bzrlib/help_topics/en/conflicts.txt'
--- a/bzrlib/help_topics/en/conflicts.txt 2007-12-25 04:17:50 +0000
+++ b/bzrlib/help_topics/en/conflicts.txt 2009-11-25 16:42:55 +0000
@@ -79,6 +79,29 @@
FILE". Bazaar cannot auto-detect when conflicts of this kind have been
resolved.
+Tag conflicts
+-------------
+
+Typical message::
+
+ Conflicting tags:
+ version-0.1
+
+When pulling from or pushing to another branch, Bazaar informs you about tags
+that conflict between the two branches; that is the same tag points to two
+different revisions. You need not resolve these conflicts, but subsequent
+uses of pull or push will result in the same message.
+
+To resolve the conflict, you must apply the correct tags to either the target
+branch or the source branch as appropriate. Use "bzr tags --show-ids -d
+SOURCE_URL" to see the tags in the source branch. If you want to make the
+target branch's tags match the source branch, then in the target branch do
+``bzr tag --force -r revid:REVISION_ID CONFLICTING_TAG`` for each of the
+CONFLICTING_TAGs, where REVISION_ID comes from the list of tags in the source
+branch. You need not call "bzr resolve" after doing this. To resolve in favor of the target branch, you need to similarly use ``tag --force`` in the source
+branch. (Note that pulling or pushing using --overwrite will overwrite all
+tags as well.)
+
Duplicate paths
---------------
More information about the bazaar-commits
mailing list