[Bug 4634] New: "Archive" command "prefix" behavior bug on Windows platform

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Tue Apr 28 22:05:51 UTC 2015


http://bz.selenic.com/show_bug.cgi?id=4634

          Priority: normal
            Bug ID: 4634
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: "Archive" command "prefix" behavior bug on Windows
                    platform
          Severity: bug
    Classification: Unclassified
                OS: Windows
          Reporter: UltraSatellite at gmail.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: 3.3.3
         Component: Mercurial
           Product: Mercurial

Consider the following command:
hg archive -t zip -p . output.zip

The archive zip file, according to *nix behavior, should contain the project
files directly under the root, like so:

output.zip/directory1
output.zip/file1.txt
etc...

On Windows, it creates a "." directory at the archive zip's root and then put
the project files in it, like so:

output.zip/./directory1
output.zip/./file1.txt
etc...

Looks like a bug, because it is currently impossible to put the project files
directory on the archive zip's root in Windows.

Thanks,
--Phil
PS: btw, it's my first time reporting a bug, so please tell me if something is
wrong.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list