[issue966] hg archive throws exception if argument to -t is not known

basiswien mercurial-bugs at selenic.com
Tue Feb 5 06:32:34 CST 2008


New submission from basiswien <nikolai.nespor at basis-wien.at>:

While running

hg archive -t tbz presse.tbz

the following exception was thrown:

** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 0.9.5)
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 14, in <module>
    mercurial.dispatch.run()
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 20,
in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 29,
in dispatch
    return _runcatch(u, args)
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 45,
in _runcatch
    return _dispatch(ui, args)
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 348,
in _dispatch
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 401,
in _runcommand
    return checkargs()
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 357,
in checkargs
    return cmdfunc()
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 340,
in <lambda>
    d = lambda: func(ui, repo, *args, **cmdoptions)
  File "/usr/local/lib/python2.5/site-packages/mercurial/commands.py", line 164,
in archive
    matchfn, prefix)
  File "/usr/local/lib/python2.5/site-packages/mercurial/archival.py", line 211,
in archive
    archiver = archivers[kind](dest, prefix, mtime or ctx.date()[0])
KeyError: 'tbz'

----------
messages: 5103
nosy: basiswien
priority: bug
status: unread
title: hg archive throws exception if argument to -t is not known
topic: surprise

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue966>
____________________________________________________



More information about the Mercurial-devel mailing list