Announcement

Collapse
No announcement yet.

Empty filename for new files?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Empty filename for new files?

    In BC3, I'm performing the following script:

    Code:
    # Load the folders specified on the commandline
    load %1 %2
    expand all
    select all
    # Exclude dlls and images
    filter "-*.xls;-*.dll;-*.gif;-*.pdb;-*.ico;-*.jpg;-*.exe;-*.bmp;-*.png;-*.lib;-*.exp;-*.frx;-*.ctf;"
    
    criteria binary
    
    # Generate a file report
    file-report 	layout:xml &
    		options:display-context &
    		title:"Diff Report" &
    		output-to:%3"\context-output.xml"
    When there's a file that was introduced on the right (ie a new file), the xml looks like this:

    Code:
    	<filecomparison created="10/6/2009 4:56:23 PM">
    		<filename1></filename1>
    		<filename2></filename2>
    		<linecomp status="rightorphan">
    			<text rtid="1">Line 1 of the code</text>
    		</linecomp>
    		<linecomp status="rightorphan">
    			<text rtid="2">Line 2 of the code</text>
    		</linecomp>
    		<linecomp status="rightsimilar">
    			<text rtid="3"></text>
    		</linecomp>
    		<linecomp status="rightorphan">
    			<text rtid="4">Line 4 of the code, etc etc</text>
    		</linecomp>
    	</filecomparison>
    In BC2, this in this scenario, the diff would show me the name of the new file in filename2, but as you can see above, in BC3, I have no way of telling what file I'm looking at. Is this a bug? Is there any way for me to work around this?

  • #2
    It might help to edit your script:

    # Exclude dlls and images
    filter "-*.xls;-*.dll;-*.gif;-*.pdb;-*.ico;-*.jpg;-*.exe;-*.bmp;-*.png;-*.lib;-*.exp;-*.frx;-*.ctf;"
    # Load the folders specified on the commandline
    load %1 %2
    expand all
    select all.files
    # Generate a file report
    file-report layout:xml &
    options:display-context &
    title:"Diff Report" &
    output-to:%3"\context-output.xml"
    Chris K Scooter Software

    Comment


    • #3
      Thanks for your response, Chris, but that still gives me the same results. If I reverse arguments 1 and 2 to the script (ie the right-side-only files become left-side-only files), it works great (shows the diff, filename1 has the name, and filename2 is empty), but any right-side-only files still have empty filename1 and filename2.

      Comment


      • #4
        I am having the same problem. I upgraded yesterday from version 3.0.15 to version 3.1.7, and now the XML output lacks filenames for right-side only files.

        Comment


        • #5
          Thanks for the follow ups. It looks like the XML report was broken in BC 3.1.7. In 3.1.7 it doesn't display the filename of right side orphans. It also lists left side orphan files as existing on both sides.

          I'll add this to our bug list to be fixed. If you need the installer for the previous release 3.1.6 to avoid this bug, please send an email to support@scootersoftware.com and we'll provide a download link.
          Chris K Scooter Software

          Comment

          Working...
          X