You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Clyde Jones <cj...@exelixis.com> on 2008/03/04 17:49:04 UTC

How to compare two repositories?

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. 

Thanks

--
Clyde Jones
R&D Informatics 
Senior Operations Developer
cjones@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@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


RE: How to compare two repositories?

Posted by Clyde Jones <cj...@exelixis.com>.
----Original Message----
From: John Peacock [mailto:john.peacock@havurah-software.org]
Sent: Tuesday, March 04, 2008 10:23 AM
To: Clyde Jones
Cc: users@subversion.tigris.org; Andy Levy
Subject: Re: How to compare two repositories?

| Clyde Jones wrote:
|| 
|| You mean something like svn log svn://repo1 > oldlog.txt ?
| 
| Try this:
| 
| 	svn log -v svn://repo1 > oldlog.txt
| 
| instead... ;-)
| 
| John

Worked like a charm! Thanks

-- 
Clyde Jones
R&D Informatics
Senior Operations Developer
cjones@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@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: How to compare two repositories?

Posted by John Peacock <jo...@havurah-software.org>.
Clyde Jones wrote:
> 
> You mean something like svn log svn://repo1 > oldlog.txt ?

Try this:

	svn log -v svn://repo1 > oldlog.txt

instead... ;-)

John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: How to compare two repositories?

Posted by Clyde Jones <cj...@exelixis.com>.
Andy Levy wrote:
> On Tue, Mar 4, 2008 at 12:49 PM, Clyde Jones
> <cj...@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@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@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: How to compare two repositories?

Posted by Andy Levy <an...@gmail.com>.
On Tue, Mar 4, 2008 at 12:49 PM, Clyde Jones <cj...@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?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org