Issue1176

Title hg convert (svn) - ValueError: need more than 1 value to unpack
Priority bug Status resolved
Superseder Nosy List SmilingRob, djc, patate, pmezard
Assigned To Topics convert, svn

Created on 2008-06-12.16:07:47 by SmilingRob, last changed 2008-11-02.13:57:55 by djc.

Messages
msg7792 (view) Author: djc Date: 2008-11-02.13:57:55
Apparently working already, resolving.
msg6596 (view) Author: pmezard Date: 2008-07-25.18:36:25
hg convert . . in an svn working copy is likely to convert from svn to svn,
breaking the svn repo at the same time. What you really want is probably:

hg init
hg convert -d hg . .

This works for me
msg6343 (view) Author: djc Date: 2008-06-18.18:48:30
So, you know, don't convert with the SVN working directory as the destination.

We should fix the traceback, but it doesn't seem like a very important problem.
msg6342 (view) Author: SmilingRob Date: 2008-06-18.18:40:59
Correct, it will also fail in the same way if the source and  
destination are the same:
hg convert buffet/ buffet/
msg6341 (view) Author: SmilingRob Date: 2008-06-18.18:18:09
When pwd is not the SVN working directory, this works correctly.

hg convert ../buffet .
msg6340 (view) Author: djc Date: 2008-06-18.17:31:38
All the ? files is normal.

So it seems all works fine as long as you don't try to convert with . as the
destination?
msg6339 (view) Author: SmilingRob Date: 2008-06-18.17:04:48
In the working copy, when I try:
hg convert . .

I get the exact same error(s).  With both commands, if I exclude the  
destination or make the destination a different directory, they will  
both create mercurial repositories with a log.

However when I do an "hg status" on the converted directory, all the  
files are "?" status (not sure if that is a new bug or related)

- Robert

On 2008-06-18, at 6:48 AM, Dirkjan Ochtman wrote:

>
> Dirkjan Ochtman <dirkjan@ochtman.nl> added the comment:
>
> Have you tried converting a working copy instead?
>
> ----------
> nosy: +djc, pmezard
> status: unread -> chatting
>
> ____________________________________________________
> Mercurial issue tracker <mercurial-bugs@selenic.com>
> <http://www.selenic.com/mercurial/bts/issue1176>
> ____________________________________________________
msg6327 (view) Author: djc Date: 2008-06-18.13:48:27
Have you tried converting a working copy instead?
msg6262 (view) Author: SmilingRob Date: 2008-06-12.16:07:45
SVN version 1.4.4 (r25188)

In the working directory, I ran this command.

Simple:buffet Robert$ hg convert file:///usr/local/svn/buffet .
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial@selenic.com
** Mercurial Distributed SCM (version 1.0.1)
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 20, 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 364, in 
_dispatch
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 417, in 
_runcommand
    return checkargs()
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 373, in 
checkargs
    return cmdfunc()
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 358, in 
<lambda>
    d = lambda: func(ui, *args, **cmdoptions)
  File "/usr/local/lib/python2.5/site-packages/hgext/convert/__init__.py", line 127, 
in convert
    return convcmd.convert(ui, src, dest, revmapfile, **opts)
  File "/usr/local/lib/python2.5/site-packages/hgext/convert/convcmd.py", line 353, in 
convert
    c.convert()
  File "/usr/local/lib/python2.5/site-packages/hgext/convert/convcmd.py", line 275, in 
convert
    self.source.setrevmap(self.map)
  File "/usr/local/lib/python2.5/site-packages/hgext/convert/subversion.py", line 236, 
in setrevmap
    uuid, module, revnum = self.revsplit(revid)
  File "/usr/local/lib/python2.5/site-packages/hgext/convert/subversion.py", line 458, 
in revsplit
    url, revnum = rev.encode(self.encoding).split('@', 1)
ValueError: need more than 1 value to unpack
History
Date User Action Args
2008-11-02 13:57:55djcsetstatus: chatting -> resolved
nosy: pmezard, djc, patate, SmilingRob
messages: + msg7792
2008-07-25 18:36:26pmezardsetnosy: pmezard, djc, patate, SmilingRob
messages: + msg6596
2008-06-18 18:48:31djcsetnosy: pmezard, djc, patate, SmilingRob
messages: + msg6343
2008-06-18 18:41:00SmilingRobsetnosy: pmezard, djc, patate, SmilingRob
messages: + msg6342
2008-06-18 18:18:10SmilingRobsetnosy: pmezard, djc, patate, SmilingRob
messages: + msg6341
2008-06-18 17:31:38djcsetnosy: pmezard, djc, patate, SmilingRob
messages: + msg6340
2008-06-18 17:04:49SmilingRobsetnosy: pmezard, djc, patate, SmilingRob
messages: + msg6339
2008-06-18 13:48:27djcsetstatus: unread -> chatting
nosy: + djc, pmezard
messages: + msg6327
2008-06-17 08:54:37patatesetnosy: + patate
2008-06-12 16:07:47SmilingRobcreate