Show More
@@ -508,6 +508,8 b' def makelocalrepository(baseui, path, in' | |||
|
508 | 508 | else: |
|
509 | 509 | storebasepath = hgvfs.base |
|
510 | 510 | cachepath = hgvfs.join(b'cache') |
|
511 | wcachepath = hgvfs.join(b'wcache') | |
|
512 | ||
|
511 | 513 | |
|
512 | 514 | # The store has changed over time and the exact layout is dictated by |
|
513 | 515 | # requirements. The store interface abstracts differences across all |
@@ -522,6 +524,9 b' def makelocalrepository(baseui, path, in' | |||
|
522 | 524 | # The cache vfs is used to manage cache files. |
|
523 | 525 | cachevfs = vfsmod.vfs(cachepath, cacheaudited=True) |
|
524 | 526 | cachevfs.createmode = store.createmode |
|
527 | # The cache vfs is used to manage cache files related to the working copy | |
|
528 | wcachevfs = vfsmod.vfs(wcachepath, cacheaudited=True) | |
|
529 | wcachevfs.createmode = store.createmode | |
|
525 | 530 | |
|
526 | 531 | # Now resolve the type for the repository object. We do this by repeatedly |
|
527 | 532 | # calling a factory function to produces types for specific aspects of the |
@@ -544,6 +549,7 b' def makelocalrepository(baseui, path, in' | |||
|
544 | 549 | storevfs=storevfs, |
|
545 | 550 | storeoptions=storevfs.options, |
|
546 | 551 | cachevfs=cachevfs, |
|
552 | wcachevfs=wcachevfs, | |
|
547 | 553 | extensionmodulenames=extensionmodulenames, |
|
548 | 554 | extrastate=extrastate, |
|
549 | 555 | baseclasses=bases) |
@@ -574,6 +580,7 b' def makelocalrepository(baseui, path, in' | |||
|
574 | 580 | sharedpath=storebasepath, |
|
575 | 581 | store=store, |
|
576 | 582 | cachevfs=cachevfs, |
|
583 | wcachevfs=wcachevfs, | |
|
577 | 584 | features=features, |
|
578 | 585 | intents=intents) |
|
579 | 586 | |
@@ -889,7 +896,7 b' class localrepository(object):' | |||
|
889 | 896 | } |
|
890 | 897 | |
|
891 | 898 | def __init__(self, baseui, ui, origroot, wdirvfs, hgvfs, requirements, |
|
892 | supportedrequirements, sharedpath, store, cachevfs, | |
|
899 | supportedrequirements, sharedpath, store, cachevfs, wcachevfs, | |
|
893 | 900 | features, intents=None): |
|
894 | 901 | """Create a new local repository instance. |
|
895 | 902 | |
@@ -932,6 +939,9 b' class localrepository(object):' | |||
|
932 | 939 | cachevfs |
|
933 | 940 | ``vfs.vfs`` used for cache files. |
|
934 | 941 | |
|
942 | wcachevfs | |
|
943 | ``vfs.vfs`` used for cache files related to the working copy. | |
|
944 | ||
|
935 | 945 | features |
|
936 | 946 | ``set`` of bytestrings defining features/capabilities of this |
|
937 | 947 | instance. |
@@ -954,6 +964,7 b' class localrepository(object):' | |||
|
954 | 964 | self.sharedpath = sharedpath |
|
955 | 965 | self.store = store |
|
956 | 966 | self.cachevfs = cachevfs |
|
967 | self.wcachevfs = wcachevfs | |
|
957 | 968 | self.features = features |
|
958 | 969 | |
|
959 | 970 | self.filtername = None |
@@ -1435,6 +1435,12 b' class ilocalrepositorymain(interfaceutil' | |||
|
1435 | 1435 | Typically .hg/cache. |
|
1436 | 1436 | """) |
|
1437 | 1437 | |
|
1438 | wcachevfs = interfaceutil.Attribute( | |
|
1439 | """A VFS used to access the cache directory dedicated to working copy | |
|
1440 | ||
|
1441 | Typically .hg/wcache. | |
|
1442 | """) | |
|
1443 | ||
|
1438 | 1444 | filteredrevcache = interfaceutil.Attribute( |
|
1439 | 1445 | """Holds sets of revisions to be filtered.""") |
|
1440 | 1446 |
General Comments 0
You need to be logged in to leave comments.
Login now