getting all revisions that are in repo a but not in b

Bill Barry after.fallout at gmail.com
Wed Oct 22 09:26:57 CDT 2008


Henryk Gerlach wrote:
> Hi,
>
> we have a release train workflow and wanted to know, which features are precisely waiting in the previous station. So we have repo a and repo b and we wanted to know what's in a and not in b. Mercurial does not seem to offer many inter-repo commands (except clone). What we finally did was:
>
> b$ hg log --template "{date|isodate}\t{node}\n" | sort > /tmp/b-revs
> b$ cd ../b
> a$ hg log --template "{date|isodate}\t{node}\n" | sort > /tmp/a-revs
> a$ comm -2 -3 /tmp/a-revs /tmp/b-revs > /tmp/a-only
> a$ (for r in $(cut -f 2 /tmp/unstable-only); do hg log -M -r $r; done )  | less
>
> Is this the easiest approach?
> Is there some WikiPage about helpfull scripts, where we could place this/evolve it?
>
> Have fun,
>
>    Henryk
>   
Can't you just use "hg incoming" from repo b?


More information about the Mercurial mailing list