Mercurial > hg-stable
changeset 6019:b70a530bdb93
cleanly abort on unknown archive type (issue966)
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Tue, 05 Feb 2008 15:54:42 +0100 |
parents | b29b75ce9645 |
children | 20b05618b3e2 cee68264ed92 |
files | mercurial/archival.py tests/test-archive tests/test-archive.out |
diffstat | 3 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/archival.py Tue Feb 05 14:02:03 2008 +0100 +++ b/mercurial/archival.py Tue Feb 05 15:54:42 2008 +0100 @@ -208,6 +208,8 @@ archiver.addfile(name, mode, islink, data) ctx = repo.changectx(node) + if kind not in archivers: + raise util.Abort(_("unknown archive type '%s'" % kind)) archiver = archivers[kind](dest, prefix, mtime or ctx.date()[0]) m = ctx.manifest() items = m.items()