~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/changeset.py

  • Committer: Robert Collins
  • Date: 2005-09-26 08:56:15 UTC
  • mto: (1092.3.4)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: robertc@robertcollins.net-20050926085615-99b8fb35f41b541d
massive patch from Alexander Belchenko - many PEP8 fixes, removes unused function uuid

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        newdict[value] = key
44
44
    return newdict
45
45
 
46
 
 
47
46
       
48
47
class ChangeUnixPermissions(object):
49
48
    """This is two-way change, suitable for file modification, creation,
93
92
    def __ne__(self, other):
94
93
        return not (self == other)
95
94
 
 
95
 
96
96
def dir_create(filename, conflict_handler, reverse):
97
97
    """Creates the directory, or deletes it if reverse is true.  Intended to be
98
98
    used with ReplaceContents.
118
118
        try:
119
119
            os.rmdir(filename)
120
120
        except OSError, e:
121
 
            if e.errno != 39:
 
121
            if e.errno != errno.ENOTEMPTY:
122
122
                raise
123
123
            if conflict_handler.rmdir_non_empty(filename) == "skip":
124
124
                return
125
125
            os.rmdir(filename)
126
126
 
127
 
                
128
 
            
129
127
 
130
128
class SymlinkCreate(object):
131
129
    """Creates or deletes a symlink (for use with ReplaceContents)"""