Mercurial > public > mercurial-scm > hg-stable
diff tests/test-subrepo-git.t @ 24953:5115d03440f4
archive: drop the leading '.' path component from the prefix (issue4634)
Unix utilities like tar will happily prefix the files it packs with './', but
annoyingly, Windows Explorer will not show these packed files when it opens the
archive. Since there doesn't seem to be a point in including './' in the path
names, just drop it. The default 'hg archive' prefix is the basename of the
archive, so specifying '.' allows for that default to be disabled completely.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 05 May 2015 20:52:38 -0400 |
parents | 3e39f67ef663 |
children | fc92ccbbeb9a |
line wrap: on
line diff
--- a/tests/test-subrepo-git.t Thu May 07 13:47:45 2015 -0500 +++ b/tests/test-subrepo-git.t Tue May 05 20:52:38 2015 -0400 @@ -325,13 +325,13 @@ ../archive_x/s ../archive_x/s/g - $ hg -R ../tc archive -S ../archive.tgz 2>/dev/null + $ hg -R ../tc archive -S ../archive.tgz --prefix '.' 2>/dev/null $ tar -tzf ../archive.tgz | sort - archive/.hg_archival.txt - archive/.hgsub - archive/.hgsubstate - archive/a - archive/s/g + .hg_archival.txt + .hgsub + .hgsubstate + a + s/g create nested repo