Show More
@@ -160,19 +160,19 b' def save(repo, includepats, excludepats)' | |||
|
160 | 160 | def savebackup(repo, backupname): |
|
161 | 161 | if repository.NARROW_REQUIREMENT not in repo.requirements: |
|
162 | 162 | return |
|
163 | vfs = repo.vfs | |
|
164 | vfs.tryunlink(backupname) | |
|
165 |
util.copyfile( |
|
|
163 | svfs = repo.svfs | |
|
164 | svfs.tryunlink(backupname) | |
|
165 | util.copyfile(svfs.join(FILENAME), svfs.join(backupname), hardlink=True) | |
|
166 | 166 | |
|
167 | 167 | def restorebackup(repo, backupname): |
|
168 | 168 | if repository.NARROW_REQUIREMENT not in repo.requirements: |
|
169 | 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 | 172 | def clearbackup(repo, backupname): |
|
173 | 173 | if repository.NARROW_REQUIREMENT not in repo.requirements: |
|
174 | 174 | return |
|
175 | repo.vfs.unlink(backupname) | |
|
175 | repo.svfs.unlink(backupname) | |
|
176 | 176 | |
|
177 | 177 | def restrictpatterns(req_includes, req_excludes, repo_includes, repo_excludes): |
|
178 | 178 | r""" Restricts the patterns according to repo settings, |
General Comments 0
You need to be logged in to leave comments.
Login now