[Bug 3623] New: convert/cvsps doesn't work with Python 2.7.3

bugzilla-daemon at bz.selenic.com bugzilla-daemon at bz.selenic.com
Wed Sep 12 15:21:35 CDT 2012


http://bz.selenic.com/show_bug.cgi?id=3623

          Priority: normal
            Bug ID: 3623
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: convert/cvsps doesn't work with Python 2.7.3
          Severity: bug
    Classification: Unclassified
                OS: Windows
          Reporter: oksenchuk at yandex.ru
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.3.1
         Component: convert
           Product: Mercurial

Seems like cvsps doesn't run cvs rlog or it fails and returns 0 log entries.

$ hg --debug convert client
assuming destination client-hg
connecting to :ext:<host>:/usr2/projects
run hg sink pre-conversion action
scanning source...
collecting CVS rlog
reading cvs log cache
c:/Users/<user>/AppData/Local/.hg.cvsps\ext.<host>.usr2-projects.client.cache
error reading cache: IOError(2, 'No such file or directory')
running "cvs" "-q" "-d:ext:<host>:/usr2/projects" "rlog" "client"
prefix='/usr2/projects/client' directory='client'
root=':ext:<host>:/usr2/projects'
0 log entries
creating changesets
0 changeset entries
sorting...
converting...
run hg sink post-conversion action

I think this is result of change 6c9345f9edca in mercurial/windows.py:
http://selenic.com/hg/comparison/6c9345f9edca/mercurial/windows.py

Because when I change version to 2.7.0 util.popen works fine:
diff -r 8fea378242e3 hgext/convert/cvsps.py
--- a/hgext/convert/cvsps.py    Sun Sep 09 12:35:06 2012 +0200
+++ b/hgext/convert/cvsps.py    Thu Sep 13 00:09:40 2012 +0400
@@ -207,6 +208,7 @@
     ui.note(_("running %s\n") % (' '.join(cmd)))
     ui.debug("prefix=%r directory=%r root=%r\n" % (prefix, directory, root))

+    sys.version_info = (2, 7, 0)
     pfp = util.popen(' '.join(cmd))
     peek = pfp.readline()
     while True:

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list