~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/changeset.py

  • Committer: Martin Pool
  • Date: 2005-08-05 19:38:50 UTC
  • Revision ID: mbp@sourcefrog.net-20050805193850-d3d034f15388791a
- add some comments on merge from talking to aaron

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
import patch
19
19
import stat
20
20
from bzrlib.trace import mutter
21
 
"""
22
 
Represent and apply a changeset
23
 
"""
 
21
 
 
22
# XXX: mbp: I'm not totally convinced that we should handle conflicts
 
23
# as part of changeset application, rather than only in the merge
 
24
# operation.
 
25
 
 
26
"""Represent and apply a changeset
 
27
 
 
28
Conflicts in applying a changeset are represented as exceptions.
 
29
"""
 
30
 
24
31
__docformat__ = "restructuredtext"
25
32
 
26
33
NULL_ID = "!NULL"
1028
1035
 
1029
1036
 
1030
1037
class ExceptionConflictHandler(object):
 
1038
    """Default handler for merge exceptions.
 
1039
 
 
1040
    This throws an error on any kind of conflict.  Conflict handlers can
 
1041
    descend from this class if they have a better way to handle some or
 
1042
    all types of conflict.
 
1043
    """
1031
1044
    def __init__(self, dir):
1032
1045
        self.dir = dir
1033
1046