[Workspace] Fix revision logic when computing package state changes
[Workspace] Fix revision logic when computing package state changes

-- https://bugs.swift.org/browse/SR-5307

abertelrud/swift-package-manager,apple/swift-package-manager,JGiola/swift-package-manager,abertelrud/swift-package-manager,apple/swift-package-manager,sschiau/swift-package-manager,sschiau/swift-package-manager,vmanot/swift-package-manager,sschiau/swift-package-manager,apple/swift-package-manager,abertelrud/swift-package-manager,JGiola/swift-package-manager,sschiau/swift-package-manager,JGiola/swift-package-manager,apple/swift-package-manager,sschiau/swift-package-manager,vmanot/swift-package-manager,vmanot/swift-package-manager,apple/swift-package-manager,vmanot/swift-package-manager,vmanot/swift-package-manager,JGiola/swift-package-manager,abertelrud/swift-package-manager,abertelrud/swift-package-manager,JGiola/swift-package-manager