Show More
@@ -967,16 +967,7 def overridearchive(orig, repo, dest, no | |||||
967 |
|
967 | |||
968 | f = lfutil.splitstandin(f) |
|
968 | f = lfutil.splitstandin(f) | |
969 |
|
969 | |||
970 | def getdatafn(): |
|
970 | getdata = lambda: util.readfile(path) | |
971 | fd = None |
|
|||
972 | try: |
|
|||
973 | fd = open(path, 'rb') |
|
|||
974 | return fd.read() |
|
|||
975 | finally: |
|
|||
976 | if fd: |
|
|||
977 | fd.close() |
|
|||
978 |
|
||||
979 | getdata = getdatafn |
|
|||
980 | write(f, 'x' in ff and 0o755 or 0o644, 'l' in ff, getdata) |
|
971 | write(f, 'x' in ff and 0o755 or 0o644, 'l' in ff, getdata) | |
981 |
|
972 | |||
982 | if subrepos: |
|
973 | if subrepos: | |
@@ -1024,16 +1015,7 def hgsubrepoarchive(orig, repo, archive | |||||
1024 |
|
1015 | |||
1025 | f = lfutil.splitstandin(f) |
|
1016 | f = lfutil.splitstandin(f) | |
1026 |
|
1017 | |||
1027 | def getdatafn(): |
|
1018 | getdata = lambda: util.readfile(os.path.join(prefix, path)) | |
1028 | fd = None |
|
|||
1029 | try: |
|
|||
1030 | fd = open(os.path.join(prefix, path), 'rb') |
|
|||
1031 | return fd.read() |
|
|||
1032 | finally: |
|
|||
1033 | if fd: |
|
|||
1034 | fd.close() |
|
|||
1035 |
|
||||
1036 | getdata = getdatafn |
|
|||
1037 |
|
1019 | |||
1038 | write(f, 'x' in ff and 0o755 or 0o644, 'l' in ff, getdata) |
|
1020 | write(f, 'x' in ff and 0o755 or 0o644, 'l' in ff, getdata) | |
1039 |
|
1021 |
General Comments 0
You need to be logged in to leave comments.
Login now