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

Henryk Gerlach hgerlach at gmx.net
Wed Oct 22 12:48:12 UTC 2008


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
-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser



More information about the Mercurial mailing list