[issue233] mq cannot handle change of file type

Vadim Gelfer mercurial-bugs at selenic.com
Mon May 8 10:27:03 CDT 2006


New submission from Vadim Gelfer <vadim.gelfer at gmail.com>:

this command sequence gives error:

hg init a
cd a
echo content > file
hg ci -Ama
hg qinit
hg qnew a.patch
hg rm file
hg qrefresh
mkdir file
hg qpop

hg --traceback qpop
Traceback (most recent call last):
  File "/export/home/bos/lib/python/mercurial/commands.py", line 3319, in dispatch
    return d()
  File "/export/home/bos/lib/python/mercurial/commands.py", line 3294, in <lambda>
    d = lambda: func(u, repo, *args, **cmdoptions)
  File "/export/home/bos/lib/python/hgext/mq.py", line 1172, in pop
    q.pop(repo, patch, force=opts['force'], update=localupdate)
  File "/export/home/bos/lib/python/hgext/mq.py", line 681, in pop
    getfile(f, mmap[f])
  File "/export/home/bos/lib/python/hgext/mq.py", line 632, in getfile
    repo.wfile(f, "w").write(t)
  File "/export/home/bos/lib/python/mercurial/localrepo.py", line 251, in wfile
    return self.wopener(f, mode)
  File "/export/home/bos/lib/python/mercurial/util.py", line 747, in o
    rename(mktempcopy(f), f)
  File "/export/home/bos/lib/python/mercurial/util.py", line 690, in mktempcopy
    fp.write(posixfile(name, "rb").read())
IOError: [Errno 21] Is a directory
abort: Is a directory

----------
assignedto: mason
messages: 1174
nosy: mason, vadim
priority: bug
status: unread
title: mq cannot handle change of file type
topic: mq

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



More information about the Mercurial mailing list