It means that 6 of something is exactly the same as half a dozen of another. An analogy used to say what your doing isn't different then something else. Also used for objects or many other things that are similar or the same.
Sally: Its half past two.
Joe: Don't you mean 2:30
Sally: Six of one half a dozen of another.