#!/bin/sh cat >> $HGRCPATH < $EDITED < $x hg add $x hg ci -m $x done cd .. hg clone r r2 | grep -v updating cd r2 for x in d e f ; do echo $x > $x hg add $x hg ci -m $x done cd .. hg init r3 cd r3 for x in g h i ; do echo $x > $x hg add $x hg ci -m $x done cd .. } initrepo echo % show the edit commands offered by outgoing cd r2 HGEDITOR=cat hg histedit --outgoing ../r | grep -v comparing | grep -v searching cd .. echo % show the error from unrelated repos cd r3 HGEDITOR=cat hg histedit --outgoing ../r | grep -v comparing | grep -v searching cd .. echo % show the error from unrelated repos cd r3 HGEDITOR=cat hg histedit --force --outgoing ../r cd ..