Show More
@@ -64,8 +64,6 b' from .utils import (' | |||
|
64 | 64 | backupdir = b'shelve-backup' |
|
65 | 65 | shelvedir = b'shelved' |
|
66 | 66 | shelvefileextensions = [b'hg', b'patch', b'shelve'] |
|
67 | # universal extension is present in all types of shelves | |
|
68 | patchextension = b'patch' | |
|
69 | 67 | |
|
70 | 68 | # we never need the user, so we use a |
|
71 | 69 | # generic user for all shelve operations |
@@ -89,12 +87,12 b' class Shelf(object):' | |||
|
89 | 87 | return Shelf(vfsmod.vfs(repo.vfs.join(shelvedir)), name) |
|
90 | 88 | |
|
91 | 89 | def exists(self): |
|
92 | return self.vfs.exists( | |
|
93 |
self.name + b'.' |
|
|
94 | ) and self.vfs.exists(self.name + b'.hg') | |
|
90 | return self.vfs.exists(self.name + b'.patch') and self.vfs.exists( | |
|
91 | self.name + b'.hg' | |
|
92 | ) | |
|
95 | 93 | |
|
96 | 94 | def mtime(self): |
|
97 |
return self.vfs.stat(self.name + b'.' |
|
|
95 | return self.vfs.stat(self.name + b'.patch')[stat.ST_MTIME] | |
|
98 | 96 | |
|
99 | 97 | def writeinfo(self, info): |
|
100 | 98 | scmutil.simplekeyvaluefile(self.vfs, self.name + b'.shelve').write(info) |
General Comments 0
You need to be logged in to leave comments.
Login now