hgext/largefiles/overrides.py
changeset 28017 d3f1b7ee5e70
parent 27944 4511e8dac4c7
child 28020 cffa46cbdb8f
equal deleted inserted replaced
28016:a2be6f0f58fb 28017:d3f1b7ee5e70
   961         write(f, 'x' in ff and 0o755 or 0o644, 'l' in ff, getdata)
   961         write(f, 'x' in ff and 0o755 or 0o644, 'l' in ff, getdata)
   962 
   962 
   963     if subrepos:
   963     if subrepos:
   964         for subpath in sorted(ctx.substate):
   964         for subpath in sorted(ctx.substate):
   965             sub = ctx.workingsub(subpath)
   965             sub = ctx.workingsub(subpath)
   966             submatch = match_.narrowmatcher(subpath, matchfn)
   966             submatch = match_.subdirmatcher(subpath, matchfn)
   967             sub._repo.lfstatus = True
   967             sub._repo.lfstatus = True
   968             sub.archive(archiver, prefix, submatch)
   968             sub.archive(archiver, prefix, submatch)
   969 
   969 
   970     archiver.done()
   970     archiver.done()
   971 
   971 
  1009 
  1009 
  1010         write(f, 'x' in ff and 0o755 or 0o644, 'l' in ff, getdata)
  1010         write(f, 'x' in ff and 0o755 or 0o644, 'l' in ff, getdata)
  1011 
  1011 
  1012     for subpath in sorted(ctx.substate):
  1012     for subpath in sorted(ctx.substate):
  1013         sub = ctx.workingsub(subpath)
  1013         sub = ctx.workingsub(subpath)
  1014         submatch = match_.narrowmatcher(subpath, match)
  1014         submatch = match_.subdirmatcher(subpath, match)
  1015         sub._repo.lfstatus = True
  1015         sub._repo.lfstatus = True
  1016         sub.archive(archiver, prefix + repo._path + '/', submatch)
  1016         sub.archive(archiver, prefix + repo._path + '/', submatch)
  1017 
  1017 
  1018 # If a largefile is modified, the change is not reflected in its
  1018 # If a largefile is modified, the change is not reflected in its
  1019 # standin until a commit. cmdutil.bailifchanged() raises an exception
  1019 # standin until a commit. cmdutil.bailifchanged() raises an exception