change to use dir entry's revision