http://cr.opensolaris.org/~mjnelson/webrev.6731044/
Testing: Somewhat cursory, but exercised the repo logic: I created a test workspace with an hg_twin file specifying a single, nested repository. The workspace was populated with a two files, and the primary/nested repos each got one of those files. I then created a teamware child workspace, moved the files from primary to nested and vice versa, and edited each. Then I added new files to primary and nested. wx2hg, as modified, did everything right, resulting in two repositories, each with a file deletion and two additions, where one of the additions was the as-modified contents of the original files. --Mark