-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing case if extra directory is added #17
Comments
The functionality you are looking for is relating to another ticket, #4 Since you’ve nested the jar file one level lower the second time, deltacode infers this as a removal followed by an addition, when in reality that file has just been moved to another location. I’ll keep this ticket open for reference and close it when #4 gets taken care of. |
@MaJuRG not exactly the same issue. For instance, in case (2) which I expect the deltacode will tell me the So, my question is why adding a new directory make the "suppose to be the same" originally become "added/removed" |
@MaJuRG Here's what we have after scanning and running DeltaCode on these 3 pairs of test codebases. The results don't seem to be entirely consistent. Putting aside the fact that we currently treat files as DeltaCode treats this as
DeltaCode treats this as 2
DeltaCode treats this as
|
@chinyeungli @johnmhoran @MaJuRG how about we ignore the align scans for now, after the integration of VirtualCodebse? Let's consider a directory structure as : Now if the But instead of that what if we do not allow changing the main root directory? The scans will be aligned as they are loaded from the Now for a file to have the status as And also the codebase would be a lot cleaner than now @chinyeungli @johnmhoran @MaJuRG need your views upon this |
@Pratikrocks I agree with removing/ignoring alignment for the first implementation of adding virtualcodebase. |
Okay |
I did some simple tests and here is my finding:
I use "balloontip-1.1.1.jar" as a sample file.
Created 2 directories
d1/
andd2/
and put the test file in it and then compare these 2 directories. The output is unchanged which is correct.Same setup as (1) but create a new subdirectory named
test/
underd1/
and put balloontip-1.1.1.jar in it.Both the
d1/balloontip-1.1.1.jar
d1/test/balloontip-1.1.1.jar
are returned as added.
and the
d2/balloontip-1.1.1.jar
is returned asremoved
which is not correct as the
d1/balloontip-1.1.1.jar
andd2/balloontip-1.1.1.jar
should return unchanged while thed1/test/balloontip-1.1.1.jar
is consider as added.root/
directory and put thed1/
in it and run the deltacode fromroot/
tod2/
. The output is unchanged which is correct.The text was updated successfully, but these errors were encountered: