##// END OF EJS Templates
largefiles: don't hash all largefiles when initializing a lfdirstate...
Mads Kiilerich -
r19010:e071d161 default
parent child Browse files
Show More
@@ -9,7 +9,6 b''
9 '''largefiles utility code: must not import other modules in this package.'''
9 '''largefiles utility code: must not import other modules in this package.'''
10
10
11 import os
11 import os
12 import errno
13 import platform
12 import platform
14 import shutil
13 import shutil
15 import stat
14 import stat
@@ -127,14 +126,7 b' def openlfdirstate(ui, repo, create=True'
127 matcher = getstandinmatcher(repo)
126 matcher = getstandinmatcher(repo)
128 for standin in repo.dirstate.walk(matcher, [], False, False):
127 for standin in repo.dirstate.walk(matcher, [], False, False):
129 lfile = splitstandin(standin)
128 lfile = splitstandin(standin)
130 hash = readstandin(repo, lfile)
131 lfdirstate.normallookup(lfile)
129 lfdirstate.normallookup(lfile)
132 try:
133 if hash == hashfile(repo.wjoin(lfile)):
134 lfdirstate.normal(lfile)
135 except OSError, err:
136 if err.errno != errno.ENOENT:
137 raise
138 return lfdirstate
130 return lfdirstate
139
131
140 def lfdirstatestatus(lfdirstate, repo, rev):
132 def lfdirstatestatus(lfdirstate, repo, rev):
General Comments 0
You need to be logged in to leave comments. Login now