its a good southern way of expressing that whatever is thought to be next, will not actually happen. When one makes this statement they are taking a stand against a suggestion of an event or events.
person 1: Hey Im gonna go in here and get something.
person 2: It aint dun it!