fix bug 1042592 and bug 1042590 - minimize revision list size