##// END OF EJS Templates
largefiles: when setting/clearing x bit on largefiles, don't change other bits...
Mads Kiilerich -
r30141:c01acee3 default
parent child Browse files
Show More
@@ -515,9 +515,13 b' def updatelfiles(ui, repo, filelist=None'
515 rellfile = lfile
515 rellfile = lfile
516 relstandin = lfutil.standin(lfile)
516 relstandin = lfutil.standin(lfile)
517 if wvfs.exists(relstandin):
517 if wvfs.exists(relstandin):
518 mode = wvfs.stat(relstandin).st_mode
518 standinexec = wvfs.stat(relstandin).st_mode & 0o100
519 if mode != wvfs.stat(rellfile).st_mode:
519 st = wvfs.stat(rellfile).st_mode
520 wvfs.chmod(rellfile, mode)
520 if standinexec != st & 0o100:
521 st &= ~0o111
522 if standinexec:
523 st |= (st >> 2) & 0o111 & ~util.umask
524 wvfs.chmod(rellfile, st)
521 update1 = 1
525 update1 = 1
522
526
523 updated += update1
527 updated += update1
General Comments 0
You need to be logged in to leave comments. Login now