Import original vendor code for correction and improvement.

(0) -10 -1 +1 tip

mercurial