How to generate textual diffs with StarTeam

0 Likes

Problem:

How to generate textual diffs with StarTeam

Resolution:

  • Product Name: StarTeam
  • Product Version: 2008
  • Product Component: Cross Platform Client Command Line Interface (STCMD)
  • Platform/OS Version: All Supported OS

Description:


Some common open source version control systems support textual difference generation. StarTeam also has this ability, but it is not a part of the GUI client. You can run STCMD DIFF to generate textual diffs!


Answer/Solution:

From the command line (This example is a Windows Shell):

C:\Program Files\Borland\StarTeam Cross-Platform Client 2008>stcmd diff -p Administrator:Administrator@usatd-dricevm2:49201/StarDraw/StarDraw -w diff.txt
StarTeam 10.1 Command Line Interface, Build 10.1.72.18
Copyright (c) 2003-2008 Borland Software Corporation. All rights reserved.
Using ini file: C:\Documents and Settings\All Users\Application Data\Borland\Sta
rTeam\ConnectionManager.ini
Folder: StarDraw (working dir: c:\StarDraw)
diff.txt Revision: 1 Date: 5/9/08 11:26 AM
diff.txt (on disk)
-------------------------------------------------------------------------------
1 |some stuff change
2 |that edit
- 1 |some stuff
- 2 |that
3 3 |might have
4 |
4 5 |changed
6 |newline
-------------------------------------------------------------------------------

The above output is meant as an example. Please review the Using and Administering StarTeam guide for details on how to use this command in greater detail.


Author: Daniel Rice

Old KB# 28918
Comment List
Related
Recommended