Show More
@@ -425,10 +425,14 b' def reposetup(ui, repo):' | |||
|
425 | 425 | keyword substitutions. |
|
426 | 426 | Monkeypatches patch and webcommands.''' |
|
427 | 427 | |
|
428 | if (not hasattr(repo, 'dirstate') or not kwtools['inc'] | |
|
429 | or kwtools['hgcmd'] in nokwcommands.split() | |
|
430 | or '.hg' in util.splitpath(repo.root)): | |
|
431 | return | |
|
428 | try: | |
|
429 | if (not repo.local() or not kwtools['inc'] | |
|
430 | or kwtools['hgcmd'] in nokwcommands.split() | |
|
431 | or '.hg' in util.splitpath(repo.root) | |
|
432 | or repo._url.startswith('bundle:')): | |
|
433 | return | |
|
434 | except AttributeError: | |
|
435 | pass | |
|
432 | 436 | |
|
433 | 437 | kwtools['templater'] = kwt = kwtemplater(ui, repo) |
|
434 | 438 |
@@ -226,7 +226,7 b' class bundlerepository(localrepo.localre' | |||
|
226 | 226 | self.manifest |
|
227 | 227 | return self.filestart |
|
228 | 228 | else: |
|
229 | raise AttributeError(name) | |
|
229 | return localrepo.localrepository.__getattr__(self, name) | |
|
230 | 230 | |
|
231 | 231 | def url(self): |
|
232 | 232 | return self._url |
@@ -34,6 +34,7 b' hg init empty' | |||
|
34 | 34 | |
|
35 | 35 | echo "====== Bundle --all" |
|
36 | 36 | hg -R test bundle --all all.hg |
|
37 | ||
|
37 | 38 | echo "====== Bundle test to full.hg" |
|
38 | 39 | hg -R test bundle full.hg empty |
|
39 | 40 | echo "====== Unbundle full.hg in test" |
@@ -139,4 +140,10 b' hg -R all.hg verify' | |||
|
139 | 140 | # but, regular verify must continue to work |
|
140 | 141 | hg -R orig verify |
|
141 | 142 | |
|
143 | echo "====== diff against bundle" | |
|
144 | hg init b | |
|
145 | cd b | |
|
146 | hg -R ../all.hg diff -r tip | |
|
147 | cd .. | |
|
142 | 148 | |
|
149 |
@@ -317,3 +317,12 b' checking manifests' | |||
|
317 | 317 | crosschecking files in changesets and manifests |
|
318 | 318 | checking files |
|
319 | 319 | 2 files, 2 changesets, 2 total revisions |
|
320 | ====== diff against bundle | |
|
321 | diff -r 836ac62537ab anotherfile | |
|
322 | --- a/anotherfile Mon Jan 12 13:46:40 1970 +0000 | |
|
323 | +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
|
324 | @@ -1,4 +0,0 @@ | |
|
325 | -0 | |
|
326 | -1 | |
|
327 | -2 | |
|
328 | -3 |
General Comments 0
You need to be logged in to leave comments.
Login now