[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: How to compare two repositories?

From: Clyde Jones <cjones_at_exelixis.com>
Date: Tue, 4 Mar 2008 10:04:53 -0800

Andy Levy wrote:
> On Tue, Mar 4, 2008 at 12:49 PM, Clyde Jones
> <cjones_at_exelixis.com> wrote:
>> Hi
>> How would I compare two repositories to get the differences?
>>
>> I am upgrading a repository from 1.1.1 to 1.4.6 and I had some
>> problems with a file that was checked in with a control character
>> as a name. I did incremental dumps (we have ~52000 revisions),
>> fixed the problem file and loaded into a new repository.
>> That seemed to work well, but I want to compare the entire revision
>> history of the two repositories to make sure only the changes I
>> wanted are there.
>>
>> I tried svnlook tree for both but the order of the files is
>> different so that comparison failed.
>>
>> Should I just do a dump of all the revisions of both repositories
>> and do a diff, or is there a better way? The dump file is ~7GB so
>> that will be a long and painful diff.
>
> Could you write the log (verbose) out to a textfile for each
> repository and then perform a diff on those?
>

You mean something like svn log svn://repo1 > oldlog.txt ?

That only gives me the log messages and not the actual files that were
added. I want to make sure the revisions are correct. Mostly I want to
make sure the incremental revisions were applied in the correct order
and I didn't bungle the changes.

I suppose I could write a script that dumped 'svnlook -r $commit#
changed /repository' and compare those. Does 'svnlook changed' give an
ordered list, or are the changes random?

--
Clyde Jones
R&D Informatics
Senior Operations Developer
cjones_at_exelixis.com
Exelixis Inc
650 837 7085 Office
650 228 4699 Cell
This email (including any attachments) may contain material
that is confidential and privileged and is for the sole use of
the intended recipient. Any review, reliance or distribution by
others or forwarding without express permission is strictly
prohibited. If you are not the intended recipient, please
contact the sender and delete all copies.
Exelixis, Inc. reserves the right, to the extent and under
circumstances permitted by applicable law, to retain, monitor
and intercept e-mail messages to and from its systems.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-04 19:05:27 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.