Monday Mar 24, 2008

I recently started working on the Tesla Project, which will provide a comprehensive power management framework for OpenSolaris.

Tesla has been going on for a while now, so the first thing I wanted to do is find out what's been done so far. So first I downloaded the sources for all three gates (powertop, cpupm and tesla)

$ hg clone ssh://anon@hg.opensolaris.org/hg/tesla/powertop
$ hg clone ssh://anon@hg.opensolaris.org/hg/tesla/cpupm-gate
$ hg clone ssh://anon@hg.opensolaris.org/hg/tesla/tesla-gate

And their respective parents (onnv_82, onnv_84 and onnv_76)

$ hg clone -r onnv_82 ssh://anon@hg.opensolaris.org/hg/onnv/onnv-gate onnv_82
$ hg clone -r onnv_84 ssh://anon@hg.opensolaris.org/hg/onnv/onnv-gate onnv_84
$ hg clone -r onnv_76 ssh://anon@hg.opensolaris.org/hg/onnv/onnv-gate onnv_76

What I wanted was a list of the active files and a webrev of the changes, basically a diff.

I went to the SCM Migration Project page and downloaded the latest SUNWonbld package - which is Mercurial aware.

If you run webrev without pointing it to a different parent, it will diff it from the online parent. Because the gates are synced with previous revisions of onnv, we need to point it to the ones downloaded. So

$ export CODEMGR_WS=/sandbox/tesla/powertop
$ export CODEMGR_PARENT=/sandbox/tesla/onnv_82
$ webrev

And then the same for the other gates.

This blog copyright 2009 by rv