Howdy, Gatekeepers--

To ease the Mercurial transition for MPK folks (and even other users of 
/ws/onnv-clone), I would like to:

        zfs create pecos/clones/onnv-hg
        zfs set mountpoint=/export/clone-hg pecos/clones/onnv-hg
        cd /export/clone-hg
        hg init .
        hg reparent /export/gate-hg
        hg pull -u

        zfs create pecos/clones/onnv-hg-closed
        zfs set mountpoint=/export/clone-hg/usr/closed 
pecos/clones/onnv-hg-closed
        cd usr/closed
        hg init .
        hg reparent /export/gate-hg/usr/closed
        hg pull -u

        cat << EOF > /export/clone/Codemgr_wsdata/hg_twin
        ssh://elpaso.eng//export/clone-hg
        ssh://elpaso.eng//export/clone-hg/usr/closed
        EOF

        ...insert into /export/gate/public/gate/bin/clone_update,
        immediately preceding the 'mailx -s "Nightly' line:

            ( su $STAFFER -c '/usr/bin/hg pull -u \
                -R /export/clone-hg ) > $mail_msg_file 2>&1

            ( su $STAFFER -c '/usr/bin/hg pull -u \
                -R /export/clone-hg/usr/closed ) > $mail_msg_file 2>&1

...anybody have any comments, objections, or suggestions to improve this?

Rationale: we want wx2hg to work out-of-the-box for wx-managed children of 
/ws/onnv-clone.  And by "work out-of-the-box," I include a strong desire 
to NOT be push-per-push synched with /export/gate-hg, because I don't want 
anybody needing to use "hg merge" simply because their wx parent (the 
clone workspace) was not in sync with its hg_twin workspace.

--Mark

Reply via email to