Comparing files in Word

2 views
Skip to first unread message

Paul

unread,
Jul 11, 2008, 2:34:55 PM7/11/08
to us...@tortoisesvn.tigris.org
Hi, I was amazed to see that if you click on "Diff with previous
version" of a Word doc, that it opens up the doc in Word and launches
a comparison between the latest two version.
This is a wonderful feature, specially when you're using Subversion
for normal docs (not code).
There is a glitch tho, the revision considere Old is the latest one
and the one considered New is in fact the older revision. In other
words, it's telling me that 3 has replaced 4 and not the other way
round.
Am I doing something wrong or is this a problem with the system?
Thanks a mil
Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: users-un...@tortoisesvn.tigris.org
For additional commands, e-mail: users...@tortoisesvn.tigris.org

Stefan Küng

unread,
Jul 11, 2008, 3:03:21 PM7/11/08
to us...@tortoisesvn.tigris.org
Paul wrote:
> Hi, I was amazed to see that if you click on "Diff with previous
> version" of a Word doc, that it opens up the doc in Word and launches
> a comparison between the latest two version.
> This is a wonderful feature, specially when you're using Subversion
> for normal docs (not code).
> There is a glitch tho, the revision considere Old is the latest one
> and the one considered New is in fact the older revision. In other
> words, it's telling me that 3 has replaced 4 and not the other way
> round.
> Am I doing something wrong or is this a problem with the system?

Actually, if I'm not completely mistaken, the diff is correct.
Word just shows the diff 'wrong'. Ok, I admit that isn't a good
explanation :)

If you look at the 'merged' document Word shows you, you will see that
it looks exactly like the 'new' file, but lines which were added in the
new file are marked red as if they were removed, not added.

If you would make Word show the diff in reverse, it would actually show
the document as it was in the old version, not the new one.

You can test this yourself if you like. The file
C:\Program Files\TortoiseSVN\Diff-Scripts\diff-doc.js
it the one which calls the word diff. If you change the lines 44/45 from:

sBaseDoc = objArgs(0);
sNewDoc = objArgs(1);

to

sBaseDoc = objArgs(1);
sNewDoc = objArgs(0);

you will see what I mean if you repeat the diff.

Stefan
--
___
oo // \\ "De Chelonian Mobile"
(_,\/ \_/ \ TortoiseSVN
\ \_/_\_/> The coolest Interface to (Sub)Version Control
/_/ \_\ http://tortoisesvn.net

signature.asc

Jean-Marc van Leerdam

unread,
Jul 11, 2008, 3:17:35 PM7/11/08
to us...@tortoisesvn.tigris.org
Stefan (et.al.),

2008/7/11 Stefan Küng <torto...@gmail.com>:

Paul wrote:
Hi, I was amazed to see that if you click on "Diff with previous
version" of a Word doc, that it opens up the doc in Word and launches
a comparison between the latest two version.
This is a wonderful feature, specially when you're using Subversion
for normal docs (not code).
There is a glitch tho, the revision considere Old is the latest one
and the one considered New is in fact the older revision. In other
words, it's telling me that 3 has replaced 4 and not the other way
round.
Am I doing something wrong or is this a problem with the system?

Actually, if I'm not completely mistaken, the diff is correct.
Word just shows the diff 'wrong'. Ok, I admit that isn't a good explanation :)

If you look at the 'merged' document Word shows you, you will see that it looks exactly like the 'new' file, but lines which were added in the new file are marked red as if they were removed, not added.

If you would make Word show the diff in reverse, it would actually show the document as it was in the old version, not the new one.

You can test this yourself if you like. The file
C:\Program Files\TortoiseSVN\Diff-Scripts\diff-doc.js
it the one which calls the word diff. If you change the lines 44/45 from:

sBaseDoc = objArgs(0);
sNewDoc = objArgs(1);

to

sBaseDoc = objArgs(1);
sNewDoc = objArgs(0);

you will see what I mean if you repeat the diff.

IIRC there have been reports earlier about the diffs not being correct, and the scripts have been modified several times to accommodate for this.

Perhaps there is a difference in the way earlier Word versions used to compare files that were passed on the command line?

--
Regards,

Jean-Marc

----------------
___
// \\ @@ "De Chelonian Mobile"
/ \_/ \/._) TortoiseSVN
<\_/_\_/ / The coolest Interface to (Sub)Version Control
/_/ \_\ Check out http://tortoisesvn.net

Paul

unread,
Jul 14, 2008, 11:54:12 AM7/14/08
to us...@tortoisesvn.tigris.org
Thanks a lot,
I see what you meen when you say it does the diff the wrong way round.
Does anyone know a way to solve this tho? Perhaps changind something
in Word?
Thanks a lot for the help guys.
Ciao
Paul

>  signature.asc
> 1KDownload

Paul

unread,
Jul 14, 2008, 12:12:35 PM7/14/08
to us...@tortoisesvn.tigris.org
Hi Stefan,
Thanks, but this actually worked for me!
I'll test it some more, but I think it's sussed.
Cheers and thanks for the help!
Paul

On Jul 11, 4:03 pm, Stefan Küng <tortoise...@gmail.com> wrote:

>  signature.asc
> 1KDownload

Reply all
Reply to author
Forward
0 new messages