Skip to content

Verify memoized files can be reloaded before using them #246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2015

Conversation

uecasm
Copy link

@uecasm uecasm commented Jul 17, 2015

Fixes #233.

dscho added a commit that referenced this pull request Jul 18, 2015
Verify memoized files can be reloaded before using them
@dscho dscho merged commit 5cff754 into git-for-windows:master Jul 18, 2015
dscho added a commit that referenced this pull request Jul 18, 2015
As per

#246 (comment)

replace the commit message by:

git-svn: do not reuse caches memoized for a different architecture

Reusing cached data speeds up git-svn by quite a fair bit. However, if
the YAML module is unavailable, the caches are written to disk in an
architecture-dependent manner. That leads to problems when upgrading,
say, from 32-bit to 64-bit Git for Windows.

Let's just try to read those caches back if we detect the absence of the
YAML module and the presence of the file, and delete the file if it
could not be read back correctly.

Note that the only way to catch the error when the memoized cache could
not be read back is to put the call inside an `eval { ... }` block
because it would die otherwise; the `eval` block should also return `1`
in case of success explicitly since the function reading back the cached
data does not return an appropriate value to test for success.

This fixes #233.

[jes: fixed the commit message, made the sign-off explicit]

Signed-off-by: Gavin Lambert <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
@dscho
Copy link
Member

dscho commented Jul 18, 2015

I took care of it myself: 2893a19

dscho added a commit that referenced this pull request Jul 18, 2015
Verify memoized files can be reloaded before using them
@uecasm
Copy link
Author

uecasm commented Jul 20, 2015

Excellent, thank you.

dscho added a commit that referenced this pull request Jul 30, 2015
Verify memoized files can be reloaded before using them
@uecasm uecasm deleted the patch-1 branch August 11, 2015 02:13
dscho added a commit that referenced this pull request Aug 31, 2015
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Sep 10, 2015
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Sep 18, 2015
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Sep 29, 2015
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Oct 5, 2015
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Oct 19, 2015
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Nov 9, 2015
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Dec 11, 2015
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Jan 5, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Jan 28, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Feb 6, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Feb 23, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Mar 15, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Mar 18, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Mar 29, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Apr 4, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Apr 30, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request May 20, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Jun 7, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Jun 9, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Sep 24, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Sep 26, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Oct 3, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Oct 4, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Oct 5, 2016
Verify memoized files can be reloaded before using them
dscho pushed a commit that referenced this pull request Oct 5, 2016
Verify memoized files can be reloaded before using them
dscho pushed a commit that referenced this pull request Oct 7, 2016
Verify memoized files can be reloaded before using them
dscho pushed a commit that referenced this pull request Oct 7, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Oct 9, 2016
Verify memoized files can be reloaded before using them
dscho pushed a commit that referenced this pull request Oct 12, 2016
Verify memoized files can be reloaded before using them
dscho pushed a commit that referenced this pull request Oct 12, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Oct 13, 2016
Verify memoized files can be reloaded before using them
dscho pushed a commit that referenced this pull request Oct 13, 2016
Verify memoized files can be reloaded before using them
dscho pushed a commit that referenced this pull request Oct 13, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Oct 15, 2016
Verify memoized files can be reloaded before using them
dscho pushed a commit that referenced this pull request Oct 18, 2016
Verify memoized files can be reloaded before using them
dscho pushed a commit that referenced this pull request Oct 18, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Oct 18, 2016
Verify memoized files can be reloaded before using them
dscho pushed a commit that referenced this pull request Oct 20, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Oct 26, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Oct 27, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Oct 27, 2016
Verify memoized files can be reloaded before using them
dscho added a commit that referenced this pull request Oct 29, 2016
Verify memoized files can be reloaded before using them
dscho pushed a commit that referenced this pull request Nov 9, 2016
Verify memoized files can be reloaded before using them
benpeart pushed a commit that referenced this pull request Jan 18, 2018
Bring the gvfs/master branch up to date with the v2.10.0.windows.1 tag

Related work items: #246, #677, #675, #665, #156, #305, #159, #726, #620, #443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants