~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/conflicts.py

  • Committer: Robert Collins
  • Date: 2005-10-14 02:17:36 UTC
  • mfrom: (1185.16.34)
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051014021736-7230e59066856096
MergeĀ fromĀ Martin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
 
17
# TODO: Move this into builtins
 
18
 
 
19
# TODO: 'bzr resolve' should accept a directory name and work from that 
 
20
# point down
 
21
 
 
22
# TODO: bzr revert should resolve; even when reverting the whole tree
 
23
# or particular directories
 
24
 
 
25
import os
 
26
import errno
 
27
 
17
28
import bzrlib.status
18
29
from bzrlib.branch import Branch
19
30
from bzrlib.errors import BzrCommandError
20
31
from bzrlib.commands import register_command
21
32
from bzrlib.workingtree import CONFLICT_SUFFIXES
22
 
import os
23
 
import errno
24
33
 
25
34
class cmd_conflicts(bzrlib.commands.Command):
26
35
    """List files with conflicts.
31
40
        for path in Branch.open_containing('.').working_tree().iter_conflicts():
32
41
            print path
33
42
 
34
 
register_command(cmd_conflicts)
35
 
 
36
43
class cmd_resolve(bzrlib.commands.Command):
37
44
    """Mark a conflict as resolved.
38
45
    """
64
71
                    print "%s does not exist" % filename
65
72
                else:
66
73
                    print "%s is not conflicted" % filename
67
 
                        
68
 
register_command(cmd_resolve)