I have done this quite a few times. Like KenH, I do it on tempered, profiled blades right after heat treat.
I do it on a bench anvil, and so far I have not broken or cracked any blades.
You are not hitting very hard with the hammer....just multiple quick, light blows.
I always get some divots in...