Show More
@@ -66,16 +66,7 b' class shelvedfile(object):' | |||||
66 | except IOError, err: |
|
66 | except IOError, err: | |
67 | if err.errno != errno.ENOENT: |
|
67 | if err.errno != errno.ENOENT: | |
68 | raise |
|
68 | raise | |
69 | if mode[0] in 'wa': |
|
69 | raise util.Abort(_("shelved change '%s' not found") % self.name) | |
70 | try: |
|
|||
71 | self.vfs.mkdir() |
|
|||
72 | return self.vfs(self.fname, mode) |
|
|||
73 | except IOError, err: |
|
|||
74 | if err.errno != errno.EEXIST: |
|
|||
75 | raise |
|
|||
76 | elif mode[0] == 'r': |
|
|||
77 | raise util.Abort(_("shelved change '%s' not found") % |
|
|||
78 | self.name) |
|
|||
79 |
|
70 | |||
80 | class shelvedstate(object): |
|
71 | class shelvedstate(object): | |
81 | """Handle persistence during unshelving operations. |
|
72 | """Handle persistence during unshelving operations. |
General Comments 0
You need to be logged in to leave comments.
Login now