that's so funny-- and a great idea. almost like reverse nlp or hypnosis, to make a strong negative association.
not sure how you could make it repulsive to flip off any cravings on an instinctual level, but avoiding it on an intellectual level for long enough and your mind may simply process it as inedible.
not sure what exactly you are trying to avoid, whether table sugar or all sugar containing foods?
If simply trying to avoid white sugar, you can also try positive replacement association, like, instead of something sugary, you would rather have strawberries, or something yummy and bright and more appealing.
If you want a sugar replacement, you could try a product like birch sugar.
But as for making 'sugar' replusive in your mind... maybe ask a hypnotherapist?