With this patches, mq is more similar to dirstate. #1 reads the files when they are needed. #2 introduces the method invalidate for mq. This is useful for GUI clients when they want to reload the mq state and not the whole repo. #3 invalidates the mq when the repo is invalidated. Not sure if this is a good idea. Greetings, Simon