bug: Trailing period on "archive" directory.
rob at landley.net
Thu Nov 2 11:08:06 CST 2006
I did this:
hg archive -r 9 -t tbz2 toybox-0.0.1.tbz2
The resulting filename:
-rw-r--r-- 1 landley landley 16662 2006-11-02 11:56 toybox-0.0.1.tbz2
The directory it extracts into:
drwxr-xr-x 5 landley landley 4096 2006-11-02 12:00 toybox-0.0.1.
Note the trailing period. (I tried not specifying .tbz, and the archive it
created didn't have any extension. If I name the archive "*.tbz" instead
of "*.tbz2", it doesn't trim the extension from the directory name at all.)
Currently, to get what I want I have to go:
hg archive -r 9 -t tbz2 toybox-0.0.1
mv toybox-0.0.1 toybox-0.0.1.tbz2
Suggestion: have it _add_ the extension to the supplied filename, rather than
try to recognize and strip it with magic heuristics.
"Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away." - Antoine de Saint-Exupery
More information about the Mercurial