It is my understanding that a .tar file contains directories and other files, and a .bz2 is a file that's compressed with bzip2 compression.
Therefore, most tarballs with bzip2 compression end in:
.tar.bz2
Which is bzip2 compression applied to a tarball.
However, whenever I download source code from a Mercurial webserver, either the internal one that you get from:
hg serve
Or from BitBucket, I get something that ends in
.bz2.tar
Which doesn't make sense to me, because you can't apply bzip2 compression on multiple files, which is why you need to "tar" them up first.
Is this a bug in Mercurial? Or is this a bug in my web browser (I've tried Google Chrome in Windows and Firefox in Ubuntu)? Or is this something that's just weird but doesn't make a difference?
The latest source that I downloaded was from http://bitbucket.org/bos/hgbook which is the repository for the Mercurial book.