Home
TeamSite
Compare a single file
kaalraa
Hi...
As far as IWOV GUI is concerned... it compares the content of a file in a branch to the same file in different branch. Does anyone used any CLT which can be used in the same way?
I have number of files ... in my branch which is being modified and submitted through workflow. After submission, i need all the files which have the content changed needs to be updated in the baseline branch we are using.
Any logic or command to do that is welcome....
Using TS 6.5 with SP 2.
thanks,
- ak's
Find more posts tagged with
Comments
reddyl
TeamSite UI compares the file to different version of the file in the same branch and not to the same file name in different branch. If you are on unix you can use diff tool to compare two different files specifying the vpaths. Please post more details if the diff tool does not help you with the solution.
jbonifaci
Are you looking to compare or just update? It sounds like you just want to update your other branch. Read up on iwupdate.
~Jeff
kaalraa
Jeff,
I am not looking on to update any file. What my requirement is suppose i have a file in branch A..... and i just want to compare the same file existing in all other branches so that i can generate a comparison report ... so that the content manager can view the report and act according to their needs and reviews.
The report is just helping out the content managers ... so that they dont have to go on each and every other branch to find out the changes done a any particular file.
At present i am using iwcmp, but what the issue i am facing is if a particular file... if modified on BRANCH A on 5/12/05 and on BRANCH B on 6/12/05. On comparing the file in between these 2 branches with that of HEADBRANCH... it gives my (f+) as result parameter.
thanks and all other suggestions are welcome.
- ak's
Adam Stoller
At present i am using iwcmp, but what the issue i am facing is if a particular file... if modified on BRANCH A on 5/12/05 and on BRANCH B on 6/12/05. On comparing the file in between these 2 branches with that of HEADBRANCH... it gives my (f+) as result parameter.
iwcmp is only used to tell you if the files (or directories) differ between the "source" and "target" areas being compared - it is not meant to provide detailed difference information.
However, since you're dealing with multiple
branches
it is probably worth verifying if lack-of-content-change equates to not-modified in iwcmp's results:
copy-using-OS-tools BRANCH_A/PATH/file BRANCH_B/PATH/file
iwcmp BRANCH_A/PATH BRANCH_B/PATH
vs
iwcp BRANCH_A/PATH/file BRANCH_B/PATH/file
iwcmp BRANCH_A/PATH BRANCH_B/PATH
vs.
iwupdate BRANCH_A/PATH/file BRANCH_B/WORKAREA
iwcmp BRANCH_A/PATH BRANCH_B/PATH
Then, submit the file in BRANCH_B (in each case) and again perform the iwcmp.
If through all of that - with no post-copy modifications made - you do
not
get an 'f+' it would seem things are working the way you probably want.
If some of them result in 'f+' but one or more do not - then make sure you don't use the method that resulted in 'f+' because it will mean you will get false-positives in terms of "modified" files.
If you want to do full content differencing between two files - it depends what platform you're on as to what's available natively, what's available in terms of freeware, shareware, and/or costware. For generating a report (which you indicated you were doing) - I'd go for GNU's
diff
utilities (on Windows you can get them through installing
cygwin
) and then doing something like:
diff -r BRANCH_A/PATH BRANCH_B/PATH > LOGPATH/diff_report.log
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
nipper
I tend to use GNU diff for stuff like this. It has a rich set of parameters available, on the downside
it does not understand TS and thus will not flag EA changes.
You may want to look at that.
Andy
kaalraa
Thanks Adam for such a good explanatory massage... but definitely there should be something like <b><i>iwdiff</i></b> which can be used to get the difference between the 2 files.
Anyways... i will look around for any other solution or will reduce the scope of my comparison report.
- ak's
Adam Stoller
I thought iwdiff used to ship with TeamSite on Windows but it doesn't look like it - it only seems to ship with TeamSite on Unix - and it's really just GNU diff with a different name - so my previous suggestion holds, if you're on Windows - consider downloading and installing cygwin - and then you can have a bunch of unix utilities at your beck and call.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
kaalraa
Thanks a lot, Adam.
Will look out for other possible solutions.
- ak's