Easiest way to get a diff between repos?

Gábor Farkas gabor at nekomancer.net
Thu Jul 26 09:13:13 CDT 2007


TK Soh wrote:
> On 7/26/07, Michael Sperber <sperber at informatik.uni-tuebingen.de> wrote:
>> "TK Soh" <teekaysoh at gmail.com> writes:
>>
>>> On 7/26/07, Michael Sperber <sperber at informatik.uni-tuebingen.de> wrote:
>>>> "TK Soh" <teekaysoh at gmail.com> writes:
>>>>
>>>>> On 7/26/07, Michael Sperber <sperber at informatik.uni-tuebingen.de> wrote:
>>>>>> Subject says all, basically.  I don't want the changesets---just a plain
>>>>>> old diff.  It'd be nice if that didn't involve creating a clone.
>>>>> Have you tried the plain old 'diff'?
>>>> Sorry, I was being unclear: I'd like to compare specific revisions
>>>> within the repositories.
>>> hg diff --rev REV1 --rev REV2
>> OK, but what if REV1 is from repository A and REV2 is from repository B?
> 
> Not sure exactly what you have in your repo, but in most cases you
> should have a good number of common changesets in both repos. Are you
> trying to compare two mutually excluded  changesets in the two repos?


wouldn't be enough to simply:

- clone a copy of repo1
- clone a copy of repo2

- update repo1 to REV1
- update repo2 to REV2

- delete the .hg directory in repo1
- delete the .hg directory in repo2

- do a "diff -r repo1 repo2"


gabor


More information about the Mercurial mailing list