~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/conflicts.py

(jameinel) Allow 'bzr serve' to interpret SIGHUP as a graceful shutdown.
 (bug #795025) (John A Meinel)

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