Author Topic: vsdiff -filelist, howto?  (Read 3006 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
vsdiff -filelist, howto?
« on: August 22, 2014, 07:29:16 PM »
How do you make this work?
  • vsdiff now supports a -filelist option for specifying a file list
  • I've tried a few things, so far, no luck.
    For WINDIFF.exe, the filelist is a list of pairs, like this:
    C:\p\file1.txt E:\a\b\c\file1.txt
    C:\p\file2.txt E:\a\b\c\file2.txt
    C:\p\file3.txt E:\a\b\c\file3.txt

    Same for slick?
    I tried that, and also a single list.
    vsdiff -filelist list_23320_v1.txt l r
    vsdiff complains:

    ---------------------------
    SlickEdit
    ---------------------------
    'list_23320_v1.txt' is not a valid list file
    ---------------------------
    OK   
    ---------------------------


Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2897
  • Hero Points: 153
Re: vsdiff -filelist, howto?
« Reply #1 on: August 22, 2014, 07:35:33 PM »
The file list needs to be relative to the specified paths.  So you need to specify something like:

vsdiff -filelist list.txt c:\p\ e:\a\b\c\

and list.txt needs to be a list of files that are relative to both those directories.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: vsdiff -filelist, howto?
« Reply #2 on: August 22, 2014, 08:56:53 PM »
Ok ... I finally got it.


So, there is no easy way to generate such a list - and the error message is pretty terrible.
The error should give at least some information, and if possible include the filenames it doesn't like, or at least the line number in the filelist where the problem occurs.


Given a tree like this:




c:\temp\a>dir/s/b/a-d
c:\temp\a\list.txt
c:\temp\a\LEFT\1\2\test.txt
c:\temp\a\LEFT\1\2\testL.txt
c:\temp\a\RIGHT\1\2\test.txt
c:\temp\a\RIGHT\1\2\testR.txt




I need a list like

 
1\2\test.txt 1\2\testL.txt 1\2\testR.txt
And it isn't very flexible - it requires the same pathnames & filenames on left and right.
With WINDIFF.exe, the list would look like:
 
 c:\temp\a\LEFT\1\2\test.txt    c:\temp\a\RIGHT\1\2\test.txt c:\temp\a\LEFT\1\2\testL.txt   c:\temp\a\RIGHT\1\2\testR.txt
Allowing for complete paths, and allowing me to specify how files are paired for comparison.
This is pretty useful for version control - where the version numbers are encoded in the filenames, so left and right would never have exactly the same names.