What Freud says is basically correct -- as many people have learned the hard way, having work done on your teeth is very, very, very unlikely to help your CH. Serious tooth work (extractions, root canals) have indeed set off CH in a bad way for some people. Dealing with a cavity probably isn't at that level.
However, the anesthetic used by dentists while treating a cavity or doing other tooth work has been shown to cause attacks for many people. Anesthetics containing epinephrine (such as Xylocaine) have been identified by some people as triggers. Ask your dentist to use something else: Prilocaine seems not to cause bad effects. Some people find that nitrous oxide ("laughing gas") is okay as an anesthetic (I remember someone here actually trying to get hold of some as an abortive), but some people have said it's a trigger for them.
I think you dentist's office is likely to have O2 on hand (I've noticed tanks in my dentist's office). You might check into this (do they have it; tank size; flow rate; mask type) or bring your own O2 setup if you have a portable-size tank.