Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Is there a functionality similar to svn diff?

When using svn diff, I can compare multiple files at once and get a list of files with annotations.
Is there a way to produce that in RTC, preferably with a similar formatting ?

A typical result of svn diff look like:

$ svn diff -r 578:580

Index: src/java/src/prj/net/sf/aceunit/Fixture.java
===================================================================
--- src/java/src/prj/net/sf/aceunit/Fixture.java (revision 578)
+++ src/java/src/prj/net/sf/aceunit/Fixture.java (revision 580)
@@ -174,7 +174,7 @@
out.format("/ The loops of this fixture. /%n");
out.format("static const aceunit_loop_t loops[] = {%n");
for (final String method : testMethods) {
- out.format(" %s,%n", loopMethods.getArg(method)); // TODO
Care about last comma?
+ out.format(" %s,%n", loopMethods.getArg(method));
}
out.format("};%n");
out.format("#endif%n");

Index: src/doc/examples/sort/Makefile
===================================================================
--- src/doc/examples/sort/Makefile (revision 578)
+++ src/doc/examples/sort/Makefile (revision 580)
@@ -1,10 +1,30 @@
-ACE_UNIT_PATH=../../..
+# Path to AceUnit.
+# Scope: local.
+# Type: Single path.
+ACE_UNIT_PATH:=../../..
+
+# List of generated files.
+# As a side effect, runs the AceUnit generator.
+# Scope: local.
+# Type: List of pathnames.
GENERATED_FILES:=$(shell java -jar $(ACE_UNIT_PATH)/java/AceUnit.jar
--print suites,headers .)
+
+# List of source files.
+# Scope: local.
+# Type: List of scource files.
SOURCES:=AceUnitMain.c AceUnit.c AceUnitData.c FullPlainLogger.c
$(wildcard
.c) $(filter %.c, $(GENERATED_FILES))

-CFLAGS=-W -Wall -pedantic
-CPPFLAGS=-DACEUNIT_SUITES -I $(ACE_UNIT_PATH)/native
+## Flags for the C compiler.
+# Scope: External
+# Type: Flags passed to the C compiler.
+override CFLAGS+=-W -Wall -pedantic

+## Flags for the C preprocessor.
+# Scope: External.
+# Type: Flags passed to all programs that do C preprocessing.
+override CPPFLAGS+=-DACEUNIT_SUITES -I $(ACE_UNIT_PATH)/native
+
+# Sets the path where to find C source files.
vpath %.c . $(ACE_UNIT_PATH)/native $(ACE_UNIT_PATH)/native/loggers

all: AceUnitMain$ svn diff -r 578:580

0 votes


Accepted answer

Permanent link

The scm command line has an "scm diff" command that provides similar output. The semantics differ a bit from the "svn diff" because of the difference in nature between Jazz SCM and SVN. You can use "scm help diff" to see what options are available.

David Lafreniere selected this answer as the correct answer

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019
× 1,202
× 158
× 113
× 46
× 35
× 8

Question asked: Apr 12 '11, 5:15 a.m.

Question was seen: 5,592 times

Last updated: Oct 12 '17, 4:11 p.m.

Confirmation Cancel Confirm