hgext/extdiff.py
changeset 45399 e7c5735433ac
parent 45130 33524b6bef53
child 45400 1bed1b00b18d
equal deleted inserted replaced
45395:e666f601b3ea 45399:e7c5735433ac
   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)
   497             guitool=guitool,
   497             guitool=guitool,
   498             do3way=do3way,
   498             do3way=do3way,
   499             confirm=opts.get(b'confirm'),
   499             confirm=opts.get(b'confirm'),
   500             commonfiles=common,
   500             commonfiles=common,
   501             tmproot=tmproot,
   501             tmproot=tmproot,
   502             dir1a=dir1a,
   502             dir1a=os.path.join(tmproot, dir1a),
   503             dir1b=dir1b,
   503             dir1b=os.path.join(tmproot, dir1b) if do3way else None,
   504             dir2root=dir2root,
   504             dir2root=dir2root,
   505             dir2=dir2,
   505             dir2=dir2,
   506             rev1a=rev1a,
   506             rev1a=rev1a,
   507             rev1b=rev1b,
   507             rev1b=rev1b,
   508             rev2=rev2,
   508             rev2=rev2,