I come from one of the countries that was on Donald Trump's list of those banned for entry, via executive order. In fact, I found out before a planned trip to the U.S. that my visa had been "provisionally revoked." Then later I heard that U.S. courts had ruled against the executive order, and that my visa would be good for U.S. travel again.
Fortunately, no change was made to the actual physical visa in my passport, so I suppose I don't need a new one.
My question relates to the future: I've noticed that U.S. immigration applications sometimes ask whether I have “ever been denied a U.S. visa or entry into the U.S. or had a U.S. visa canceled."
What do I say if and when I am asked this question? Will it be a negative mark on my immigration record if I say yes? Or will I get in trouble for lying if I say no?
Your concern is a valid one, given that misrepresentations on a visa application are a ground of inadmissibility under U.S. immigration law. (Inadmissibility means the person is barred from receiving future visas or other immigration benefits.)
There's good news on this front, however. According to information provided to lawyers by the Department of State (DOS) in early 2017, people whose visas were provisionally revoked and then reinstated as a result of the U.S. federal court's temporary restraining order (TRO) against Trump's executive order need not say on future applications that they have had a visa revoked.
Of course, there's no need to hide this information, either. Your visa revocation had nothing to do with you personally. So if, for example, an official asks you about this part of your record, you should be able to safely explain what happened.
Also, as you correctly supposed, if no change was made to your physical visa, you need not do anything about it.