Show More
@@ -110,9 +110,6 b' class shelvedfile(object):' | |||
|
110 | 110 | self.backupvfs.makedir() |
|
111 | 111 | util.rename(self.filename(), self.backupfilename()) |
|
112 | 112 | |
|
113 | def stat(self): | |
|
114 | return self.vfs.stat(self.fname) | |
|
115 | ||
|
116 | 113 | |
|
117 | 114 | class Shelf(object): |
|
118 | 115 | """Represents a shelf, including possibly multiple files storing it. |
@@ -130,6 +127,9 b' class Shelf(object):' | |||
|
130 | 127 | def exists(self): |
|
131 | 128 | return self.vfs.exists(self.name + b'.' + patchextension) |
|
132 | 129 | |
|
130 | def mtime(self): | |
|
131 | return self.vfs.stat(self.name + b'.' + patchextension)[stat.ST_MTIME] | |
|
132 | ||
|
133 | 133 | def writeinfo(self, info): |
|
134 | 134 | scmutil.simplekeyvaluefile(self.vfs, self.name + b'.shelve').write(info) |
|
135 | 135 | |
@@ -642,8 +642,8 b' def listshelves(repo):' | |||
|
642 | 642 | pfx, sfx = name.rsplit(b'.', 1) |
|
643 | 643 | if not pfx or sfx != patchextension: |
|
644 | 644 | continue |
|
645 |
|
|
|
646 |
info.append(( |
|
|
645 | mtime = Shelf(repo, pfx).mtime() | |
|
646 | info.append((mtime, shelvedfile(repo, pfx).filename())) | |
|
647 | 647 | return sorted(info, reverse=True) |
|
648 | 648 | |
|
649 | 649 |
General Comments 0
You need to be logged in to leave comments.
Login now