Hmm. It seems revert works when launched via ctrl+shift+p. Haven't been able to get it to work in the code yet, need to figure out the context. Thanks tito! I believe this is exactly what I was looking for.