Hanspeter Schinz wrote:
Hi,
is there any simple possibility to generate a file list
of that files really have changed on a specific branch tag
(inclusive removed and added files on this specific branch)
recursively over a whole repository.
thanks a lot
Hanspeter
Assuming you created a normal tag (NTAG) and then used that to create the
branch tag [1] , and that you have a normal tag on the head of the branch
(BHEAD) [2].
I believe you should be able to at a prompt inside of a branch checkout
issue:
cvs diff -N --brief -rNTAG -rBHEAD | \
grep -e "^Index:" -e "^Files" > ListOfDelta.txt
^File lines with /dev/null in them were either added or removed, others are
simple changes.
I believe from what I see, doing something similar in my repo, that all the
lines where ^Index: is printed the file will have deltas in it[3].
to just get the file names:
cat ListOfDelta.txt | grep ^Index |awk -F: '{print $2}'
[1] or alternatively immediately normal tagged the branch after creation and
before modifying any files.
[2] IIRC HEAD will not work because it ALWAYS refers to the trunk when doing
diff. however the second tag (BHEAD) MAY not be needed seeing as you are in
a sandbox where the branch is checked out and it will diff against the
branch head naturally...I think...maybe.
[3] as far as diff is concerned... those deltas may only be white space if
that was the changes made.