Show More
@@ -160,19 +160,19 b' def save(repo, includepats, excludepats)' | |||||
160 | def savebackup(repo, backupname): |
|
160 | def savebackup(repo, backupname): | |
161 | if repository.NARROW_REQUIREMENT not in repo.requirements: |
|
161 | if repository.NARROW_REQUIREMENT not in repo.requirements: | |
162 | return |
|
162 | return | |
163 | vfs = repo.vfs |
|
163 | svfs = repo.svfs | |
164 | vfs.tryunlink(backupname) |
|
164 | svfs.tryunlink(backupname) | |
165 |
util.copyfile( |
|
165 | util.copyfile(svfs.join(FILENAME), svfs.join(backupname), hardlink=True) | |
166 |
|
166 | |||
167 | def restorebackup(repo, backupname): |
|
167 | def restorebackup(repo, backupname): | |
168 | if repository.NARROW_REQUIREMENT not in repo.requirements: |
|
168 | if repository.NARROW_REQUIREMENT not in repo.requirements: | |
169 | return |
|
169 | return | |
170 | util.rename(repo.vfs.join(backupname), repo.svfs.join(FILENAME)) |
|
170 | util.rename(repo.svfs.join(backupname), repo.svfs.join(FILENAME)) | |
171 |
|
171 | |||
172 | def clearbackup(repo, backupname): |
|
172 | def clearbackup(repo, backupname): | |
173 | if repository.NARROW_REQUIREMENT not in repo.requirements: |
|
173 | if repository.NARROW_REQUIREMENT not in repo.requirements: | |
174 | return |
|
174 | return | |
175 | repo.vfs.unlink(backupname) |
|
175 | repo.svfs.unlink(backupname) | |
176 |
|
176 | |||
177 | def restrictpatterns(req_includes, req_excludes, repo_includes, repo_excludes): |
|
177 | def restrictpatterns(req_includes, req_excludes, repo_includes, repo_excludes): | |
178 | r""" Restricts the patterns according to repo settings, |
|
178 | r""" Restricts the patterns according to repo settings, |
@@ -77,6 +77,7 b' Making sure store has the required files' | |||||
77 | 00manifest.i |
|
77 | 00manifest.i | |
78 | data (tree flat-fncache !) |
|
78 | data (tree flat-fncache !) | |
79 | fncache (tree flat-fncache !) |
|
79 | fncache (tree flat-fncache !) | |
|
80 | journal.narrowspec | |||
80 | meta (tree !) |
|
81 | meta (tree !) | |
81 | narrowspec |
|
82 | narrowspec | |
82 | undo |
|
83 | undo |
General Comments 0
You need to be logged in to leave comments.
Login now