~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/conflicts.py

Merge from integration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
from bzrlib.errors import BzrCommandError, NotConflicted
31
31
from bzrlib.commands import register_command
32
32
from bzrlib.workingtree import CONFLICT_SUFFIXES
 
33
from bzrlib.osutils import rename
33
34
 
34
35
class cmd_conflicts(bzrlib.commands.Command):
35
36
    """List files with conflicts.
80
81
    """
81
82
    conflicted = False
82
83
    try:
83
 
        os.rename(filename + ".THIS", filename)
 
84
        rename(filename + ".THIS", filename)
84
85
        conflicted = True
85
86
    except OSError, e:
86
87
        if e.errno != errno.ENOENT: