Showing posts with label versions. Show all posts
Showing posts with label versions. Show all posts

Sunday, December 5, 2010

Difference between two versions in ClearCase dynamic view

For dynamic views, you can use the extended pathnames with cleartool diff.

This help page "To compare with a version other than the predecessor " gives all the details:

cleartool diff prog.c prog.c@@\main\4

cleartool diff won't give you exactly what you want if you look only for a summary (displaying only the number of lines added, removed and changed):

The default file-comparison report begins with a file summary, which lists all the input files and their assignments as file 1, file 2, and so on.
If no differences are detected among the files, this listing is replaced by the message Files are identical.

The remainder of the report is a series of pairwise differences, each of which is preceded by a descriptive header line:

******************************** (file summary)<<< file 1: util.c@@/main/1>>> file 2: util.c@@/main/3********************************----------[after 15]------|-------[inserted 16]------ (header) | char *s; (difference) |----------[changed 18]-----|----[changed to 19-21]---- (header)return ctime(&clock); | s = ctime(&clock); (difference) - | s[ strlen(s)-1 ] = '\0'; | return s; |-

Note:

report with x lines added , y lines deleted , z lines changed between two versions

No, not with cleartool diff: the diff format doesn't include a pure summary style.

But since you can access to any two versions in a dynamic view, you can use any diff tool you want to achieve that particular output.


View the original article here

count lines of code between two versions

You can as VonC suggest use two different views. Alternatively you can use the file@@version syntax to access both versions directly if you know exactly what you are looking for. Two views are probably the best option if you are going to automate something (which implementing something in java suggests to me).

When you say "compare lines of code between two clearcase versions" I assume you are looking for something other than the standard cleartool diff (btw, KDiff3 is an excellent diff utility which have clearcase integration, I highly reccommend it), and assume it is more in the "count number of lines" direction you are looking.

However just counting difference in lines will only give limited information, usually it is also interesting to know if the lines that constitutes the difference are mostly added or removed. To give this kind of information you can use diffstat (see this answer for example output).

At my last job I wrote a java gui for running

diff -u file@@/main/branch1/LABEL1 file@@/main/branch2/LABEL2 | diffstat

given two labels, iterating over several files, but I then depended on bash, diff and diffstat from cygwin, I am not aware of any pure java alternatives here.


View the original article here

Saturday, November 27, 2010

Système de Gestion de Versions: Logiciel de Gestion de Versions, Bitkeeper, Clearcase, Revision Control System, Pvcs, Gforge, Fusionforge (French Edition)

Les achats comprennent une adhésion à l'essai gratuite au club de livres de l'éditeur, dans lequel vous pouvez choisir parmi plus d'un million d'ouvrages, sans frais. Le livre consiste d'articles Wikipedia sur : Logiciel de Gestion de Versions, Bitkeeper, Clearcase, Revision Control System, Pvcs, Gforge, Fusionforge, Savane, Perforce, Microsoft Visual Sourcesafe, Synergy, Visualsvn, Tailor, Label, Gestion Concurrente de Versions, Smartsvn. Non illustré. Mises à jour gratuites en ligne. Extrait : La gestion de versions (en anglais ou ) est une activité qui consiste à maintenir l'ensemble des versions ou révisions d'un logiciel ou autre document. Essentiellement utilisée dans le domaine de la création de logiciels, elle est surtout concernée par le code source ; mais elle peut être utilisée pour tout type de document informatique. Cette activité étant fastidieuse et relativement complexe, un appui logiciel est presque indispensable. À cet effet, il existe différents logiciels de gestion de versions qui, bien qu'ayant des concepts essentiels communs, apportent chacun son propre vocabulaire et ses propres usages. À titre d'exemple, on trouve un mécanisme de gestion de versions dans Wikipédia : pour chaque article, l'historique est disponible en cliquant sur le lien Historique. Les logiciels évoluant, chaque étape d'avancement est appelée version. Les différentes versions sont nécessairement liées à travers des modifications. Une modification peut correspondre à des ajouts, modifications, suppressions ou une combinaison des trois sur une version donnée. Schématiquement, on passera de la version N à la version N + 1 en appliquant une modification M. Un logiciel de gestion de versions nous aidera alors à soustraire la modification M de la version N + 1 pour retrouver la version N. Les concepteurs du logiciel de gestion de versions RCS ont choisi de parler de « révisions » (revisions) afin de ne pas confondre la version du logiciel a...http://booksllc.net/?l=fr

Price: $19.99


Click here to buy from Amazon

Wednesday, November 3, 2010

How to find merged file versions in ClearCase - by: t_gefen

Hi all,
I'd like to suggest a useful approach to find UCM file versions which made by product of ClearCase merge. These versions might be the reason for broken builds or RTE, and although they used to be in 'rebase' and 'delivery' activities only, you may find them in any other activity, what makes it more difficult to find them out.
Watch this 1-minute clip:

Regards,
Tamir Gefen, GoMidjets
View the original article here

How to find merged file versions in ClearCase - by: t_gefen

Hi all,
I'd like to suggest a useful approach to find UCM file versions which made by product of ClearCase merge. These versions might be the reason for broken builds or RTE, and although they used to be in 'rebase' and 'delivery' activities only, you may find them in any other activity, what makes it more difficult to find them out.
Watch this 1-minute clip:

Regards,
Tamir Gefen, GoMidjets
View the original article here

Tuesday, November 2, 2010

How to find merged file versions in ClearCase


Posts: 561
Registered: Nov 19, 2007 06:06:36 AM How to find merged file versions in ClearCase
Posted: Nov 01, 2010 05:42:10 PM Hi all,

I'd like to suggest a useful approach to find UCM file versions which made by product of ClearCase merge. These versions might be the reason for broken builds or RTE, and although they used to be in 'rebase' and 'delivery' activities only, you may find them in any other activity.
Watch this 1-minute clip: http://bit.ly/bniF4h

Regards,
Tamir Gefen, GoMidjets

Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

Use the search field to find all types of content in My developerWorks with that tag. Use the slider bar to see more or fewer tags. Popular tags shows the top tags for this particular type of content or application that you're viewing. My tags shows your tags for this particular type of content or application that you're viewing.MoreLess 
Point your RSS reader here for a feed of the latest messages in all forums

View the original article here