~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/conflicts.py

  • Committer: Patch Queue Manager
  • Date: 2015-12-17 18:39:00 UTC
  • mfrom: (6606.1.2 fix-float)
  • Revision ID: pqm@pqm.ubuntu.com-20151217183900-0719du2uv1kwu3lc
(vila) Inline testtools private method to fix an issue in xenial (the
 private implementation has changed in an backward incompatible way).
 (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
# TODO: 'bzr resolve' should accept a directory name and work from that
18
18
# point down
19
19
 
 
20
from __future__ import absolute_import
 
21
 
20
22
import os
21
23
 
22
24
from bzrlib.lazy_import import lazy_import
50
52
    Merge will do its best to combine the changes in two branches, but there
51
53
    are some kinds of problems only a human can fix.  When it encounters those,
52
54
    it will mark a conflict.  A conflict means that you need to fix something,
53
 
    before you should commit.
 
55
    before you can commit.
54
56
 
55
57
    Conflicts normally are listed as short, human-readable messages.  If --text
56
58
    is supplied, the pathnames of files with text conflicts are listed,
80
82
 
81
83
 
82
84
resolve_action_registry.register(
83
 
    'done', 'done', 'Marks the conflict as resolved' )
 
85
    'done', 'done', 'Marks the conflict as resolved.')
84
86
resolve_action_registry.register(
85
87
    'take-this', 'take_this',
86
 
    'Resolve the conflict preserving the version in the working tree' )
 
88
    'Resolve the conflict preserving the version in the working tree.')
87
89
resolve_action_registry.register(
88
90
    'take-other', 'take_other',
89
 
    'Resolve the conflict taking the merged version into account' )
 
91
    'Resolve the conflict taking the merged version into account.')
90
92
resolve_action_registry.default_key = 'done'
91
93
 
92
94
class ResolveActionOption(option.RegistryOption):
104
106
    Merge will do its best to combine the changes in two branches, but there
105
107
    are some kinds of problems only a human can fix.  When it encounters those,
106
108
    it will mark a conflict.  A conflict means that you need to fix something,
107
 
    before you should commit.
 
109
    before you can commit.
108
110
 
109
111
    Once you have fixed a problem, use "bzr resolve" to automatically mark
110
112
    text conflicts as fixed, "bzr resolve FILE" to mark a specific conflict as