##// END OF EJS Templates
largefiles: don't let update leave wrong largefiles in wd if fetch fails...
Mads Kiilerich -
r18727:4846f211 stable
parent child Browse files
Show More
@@ -501,6 +501,8 b' def _updatelfile(repo, lfdirstate, lfile'
501 # use normallookup() to allocate entry in largefiles dirstate,
501 # use normallookup() to allocate entry in largefiles dirstate,
502 # because lack of it misleads lfilesrepo.status() into
502 # because lack of it misleads lfilesrepo.status() into
503 # recognition that such cache missing files are REMOVED.
503 # recognition that such cache missing files are REMOVED.
504 if lfile not in repo[None]: # not switched to normal file
505 util.unlinkpath(abslfile, ignoremissing=True)
504 lfdirstate.normallookup(lfile)
506 lfdirstate.normallookup(lfile)
505 return None # don't try to set the mode
507 return None # don't try to set the mode
506 else:
508 else:
General Comments 0
You need to be logged in to leave comments. Login now