bug: Trailing period on "archive" directory.

Benoit Boissinot bboissin at gmail.com
Thu Nov 2 12:28:51 CST 2006

On 11/2/06, Rob Landley <rob at landley.net> wrote:
> 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.

There was a missing '.', thanks for noticing it.
fixed in http://hg.intevation.org/mercurial/crew/rev/1d2fdea875bc



More information about the Mercurial mailing list