-
Notifications
You must be signed in to change notification settings - Fork 2
DiffFileScanner
zentai edited this page Jan 18, 2012
·
2 revisions
for release/trace purpose, a tools can list out all changed file between 2 version folder, this tools will help to copy these change file (update and new only) into specify folder. and keep relative folder structure.
for example, we compare: release_0.0.5 and release_0.0.4,
compare result:
- [U] \dist\Config.ini
- [+] \dist\images\y.jpg
- [-] \dist\images\x.png
original folder structure:
- c:\release_0.0.5\dist\Config.ini
- c:\release_0.0.5\dist\images\y.jpg
- c:\release_0.0.5\dist\images\x.png
release folder structure:
- c:\new_release_pack\dist\Config.ini
- c:\new_release_pack\dist\images\y.jpg
compare 2 folder to find out the diff file list.
Report Format:
- [U|+|-] filepath
Report Description:
- [U] this file appear both folder, but content diff (compare by sha-1)
- [+] this file appear new version folder only.
- [-] this file appear old version folder only.