[Bug 6063] New: `hg update` on windows says "The system cannot find specified path"

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Tue Jan 29 15:07:38 UTC 2019


https://bz.mercurial-scm.org/show_bug.cgi?id=6063

            Bug ID: 6063
           Summary: `hg update` on windows says "The system cannot find
                    specified path"
           Product: Mercurial
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: 7895pulkit at gmail.com
                CC: mercurial-devel at mercurial-scm.org

`hg update` on a new cloned repository aborts saying "The system cannot find
the specified path".

Following is the traceback:

```
Traceback (most recent call last):
  File "contrib/python/hg/mercurial/scmutil.py", line 166, in callcatch
    return func()
  File "contrib/python/hg/mercurial/dispatch.py", line 359, in _runcatchfunc
    return _dispatch(req)
  File "contrib/python/hg/mercurial/dispatch.py", line 1006, in _dispatch
    cmdpats, cmdoptions)
  File "contrib/python/hg/mercurial/dispatch.py", line 748, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "contrib/python/hg/mercurial/dispatch.py", line 1015, in _runcommand
    return cmdfunc()
  File "contrib/python/hg/mercurial/dispatch.py", line 1003, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
  File "contrib/python/hg/mercurial/util.py", line 1644, in check
    return func(*args, **kwargs)
  File "contrib/python/hg/mercurial/commands.py", line 6094, in update
    updatecheck=updatecheck)
  File "vcs/hg/client/hgext3rd/narrowupdate.py", line 31, in wrapupdatetotally
    ret = orig(ui, repo, checkout, brev, **opts)
  File "contrib/python/hg/mercurial/hg.py", line 921, in updatetotally
    ret = _update(repo, checkout, updatecheck=updatecheck)
  File "contrib/python/hg/mercurial/hg.py", line 858, in update
    stats = updaterepo(repo, node, False, updatecheck=updatecheck)
  File "contrib/python/hg/mercurial/hg.py", line 854, in updaterepo
    updatecheck=updatecheck)
  File "contrib/python/hg/mercurial/extensions.py", line 417, in closure
    return func(*(args + a), **kw)
  File "contrib/python/hg/hgext/fsmonitor/__init__.py", line 753, in wrapupdate
    labels, matcher, **kwargs)
  File "contrib/python/hg/mercurial/merge.py", line 2178, in update
    stats = applyupdates(repo, actions, wc, p2, overwrite, labels=labels)
  File "contrib/python/hg/mercurial/merge.py", line 1646, in applyupdates
    for i, item in prog:
  File "contrib/python/hg/mercurial/merge.py", line 1510, in batchget
    atomictemp=atomictemp)
  File "contrib/python/hg/mercurial/context.py", line 1668, in write
    **kwargs)
  File "contrib/python/hg/mercurial/localrepo.py", line 1662, in wwrite
    **kwargs)
  File "contrib/python/hg/mercurial/vfs.py", line 86, in write
    with self(path, 'wb', backgroundclose=backgroundclose, **kwargs) as fp:
  File "contrib/python/hg/mercurial/vfs.py", line 413, in __call__
    fp = util.posixfile(f, mode)
  File "contrib/python/hg/mercurial/windows.py", line 168, in posixfile
    encoding.strfromlocal(name), err.strerror))
IOError: [Errno 2] <path>: The system cannot find the path specified
abort: <path>: The system cannot find the path specified
```

Happens with both workers enabled and disabled. I am using command prompt in
windows.

Interesting thing is <path> is of the form:

"D:\SRC\pulkit\repo_root\some_folder_in_repo/subfolder/subfolder2/some_file"

The path is shortened up. The interesting part is that the path initially has
'\' and then has '/' as separator.

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


More information about the Mercurial-devel mailing list