265 # built in an "unstable" way and it's annoying to get files in a |
265 # built in an "unstable" way and it's annoying to get files in a |
266 # random order, especially when "confirm" mode is enabled. |
266 # random order, especially when "confirm" mode is enabled. |
267 waitprocs = [] |
267 waitprocs = [] |
268 totalfiles = len(commonfiles) |
268 totalfiles = len(commonfiles) |
269 for idx, commonfile in enumerate(sorted(commonfiles)): |
269 for idx, commonfile in enumerate(sorted(commonfiles)): |
270 path1a = os.path.join(tmproot, dir1a, commonfile) |
270 path1a = os.path.join(dir1a, commonfile) |
271 label1a = commonfile + rev1a |
271 label1a = commonfile + rev1a |
272 if not os.path.isfile(path1a): |
272 if not os.path.isfile(path1a): |
273 path1a = pycompat.osdevnull |
273 path1a = pycompat.osdevnull |
274 |
274 |
275 path1b = b'' |
275 path1b = b'' |
276 label1b = b'' |
276 label1b = b'' |
277 if do3way: |
277 if do3way: |
278 path1b = os.path.join(tmproot, dir1b, commonfile) |
278 path1b = os.path.join(dir1b, commonfile) |
279 label1b = commonfile + rev1b |
279 label1b = commonfile + rev1b |
280 if not os.path.isfile(path1b): |
280 if not os.path.isfile(path1b): |
281 path1b = pycompat.osdevnull |
281 path1b = pycompat.osdevnull |
282 |
282 |
283 path2 = os.path.join(dir2root, dir2, commonfile) |
283 path2 = os.path.join(dir2root, dir2, commonfile) |