I VERY MUCH doubt that in case of revolution, military would back the government. Think about who serves in the military, ESPECIALLY as foot soldiers. You think those kids would shoot their own neighbors for a paycheck?
By the way, when revolution happened in Russia, many soldiers in the military revolted against their officers and joined the rebels.