[issue2381] clone -U without destination directory

Marco Giovannini bugs at mercurial.selenic.com
Thu Sep 16 03:02:27 CDT 2010


New submission from Marco Giovannini <usernkey at gmail.com>:

without the option -U it works but with the option -U it generates the
exception.

hg clone -U /home/comacsd.projects/repo/team/owrt/xxxx/trunk/core/
destination directory: core

    *
          o unknown exception encountered, details follow
          o report bug details to http://mercurial.selenic.com/bts/
          o or mercurial at selenic.com
          o Python 2.7 (r27:82500, Aug 19 2010, 14:45:52) [GCC 4.1.2
20080704 (Red Hat 4.1.2-48)]
          o Mercurial Distributed SCM (version unknown)
          o Extensions loaded: extdiff, color, graphlog, hgk, progress,
fetch, lantiq_subrepos, record, mb, snap, purge, notify Traceback (most
recent call last):
            File "/opt/mercurial_1.6.2/bin/_hg", line 27, in <module>
            mercurial.dispatch.run()
            File
"/opt/mercurial_1.6.2/linux50_64/lib/python2.7/site-packages/mercurial/dispatch.py",
line 16, in run
            sys.exit(dispatch(sys.argv[1:]))
            File
"/opt/mercurial_1.6.2/linux50_64/lib/python2.7/site-packages/mercurial/dispatch.py",
line 34, in dispatch
            return _runcatch(u, args)
            File
"/opt/mercurial_1.6.2/linux50_64/lib/python2.7/site-packages/mercurial/dispatch.py",
line 54, in _runcatch
            return _dispatch(ui, args)
            File
"/opt/mercurial_1.6.2/linux50_64/lib/python2.7/site-packages/mercurial/dispatch.py",
line 490, in _dispatch
            cmdpats, cmdoptions)
            File
"/opt/mercurial_1.6.2/linux50_64/lib/python2.7/site-packages/mercurial/dispatch.py",
line 351, in runcommand
            ret = _runcommand(ui, options, cmd, d)
            File
"/opt/mercurial_1.6.2/linux50_64/lib/python2.7/site-packages/mercurial/extensions.py",
line 174, in wrap
            return wrapper(origfn, *args, **kwargs)
            File
"/opt/mercurial_1.6.2/linux50_64/lib/python2.7/site-packages/hgext/color.py", line
211, in colorcmd
            return orig(ui_, opts, cmd, cmdfunc)
            File
"/opt/mercurial_1.6.2/linux50_64/lib/python2.7/site-packages/mercurial/dispatch.py",
line 541, in _runcommand
            return checkargs()
            File
"/opt/mercurial_1.6.2/linux50_64/lib/python2.7/site-packages/mercurial/dispatch.py",
line 495, in checkargs
            return cmdfunc()
            File
"/opt/mercurial_1.6.2/linux50_64/lib/python2.7/site-packages/mercurial/dispatch.py",
line 488, in <lambda>
            d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
            File
"/opt/mercurial_1.6.2/linux50_64/lib/python2.7/site-packages/mercurial/util.py",
line 420, in check
            return func(*args, **kwargs)
            File
"/opt/mercurial_1.6.2/linux50_64/lib/python2.7/site-packages/mercurial/commands.py",
line 725, in clone
            branch=opts.get('branch'))
            File
"/opt/mercurial_1.6.2/linux50_64/lib/python2.7/site-packages/mercurial/extensions.py",
line 174, in wrap
            return wrapper(origfn, *args, **kwargs)
            File
"/opt/mercurial_1.6.2/linux50_64/lib/python2.7/site-packages/hgext/snap.py",
line 3375, in wrap_hgclone
            src_repo.cancopy() and hg.islocal(dest) and not pull and not rev):
            File
"/opt/mercurial_1.6.2/linux50_64/lib/python2.7/site-packages/mercurial/hg.py",
line 90, in islocal
            return repo.local()
            AttributeError: 'NoneType' object has no attribute 'local'

----------
messages: 13627
nosy: usernkey
priority: bug
status: unread
title: clone -U without destination directory

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


More information about the Mercurial-devel mailing list