~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/conflicts.py

  • Committer: John Arbash Meinel
  • Date: 2005-12-01 23:52:16 UTC
  • mto: (1185.50.19 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1532.
  • Revision ID: john@arbash-meinel.com-20051201235216-50aa021d8ed62620
Some corrections using the new osutils.rename. **ALL TESTS PASS**

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: