[Bug 4427] New: Switching between branches with different substates results in "abort: svn: 'xxx' is not a working copy"

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Thu Oct 30 03:37:53 CDT 2014


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

          Priority: normal
            Bug ID: 4427
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: Switching between branches with different substates
                    results in "abort: svn: 'xxx' is not a working copy"
          Severity: bug
    Classification: Unclassified
                OS: Windows
          Reporter: bill.king at here.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: 3.1.1
         Component: Mercurial
           Product: Mercurial

when doing an update switching to an existing branch with a different set of
subrepos, mercurial doesn't try and do a checkout on a non-existing
subdirectory, and instead responds with: eg:
abort: svn: 'C:\Depot\mos\apps\wxtest\external' is not a working copy

This can be fixed with "svn co --force"

backtrace:

C:\Depot\mos>hg update staging_guidance --traceback
svn: warning: 'C:\Depot\mos\apps\wxtest\external\vld2.4' is not a working copy
Traceback (most recent call last):
  File "mercurial\dispatch.pyo", line 138, in _runcatch
  File "mercurial\dispatch.pyo", line 820, in _dispatch
  File "mercurial\dispatch.pyo", line 600, in runcommand
  File "mercurial\extensions.pyo", line 196, in wrap
  File "hgext\color.pyo", line 433, in colorcmd
  File "mercurial\dispatch.pyo", line 911, in _runcommand
  File "mercurial\dispatch.pyo", line 882, in checkargs
  File "mercurial\dispatch.pyo", line 817, in <lambda>
  File "mercurial\util.pyo", line 550, in check
  File "mercurial\extensions.pyo", line 151, in wrap
  File "mercurial\util.pyo", line 550, in check
  File "hgext\mq.pyo", line 3393, in mqcommand
  File "mercurial\util.pyo", line 550, in check
  File "mercurial\commands.pyo", line 5997, in update
  File "mercurial\hg.pyo", line 493, in update
  File "mercurial\hg.pyo", line 489, in updaterepo
  File "mercurial\merge.pyo", line 1087, in update
  File "mercurial\context.pyo", line 1211, in dirty
  File "mercurial\subrepo.pyo", line 998, in dirty
  File "mercurial\subrepo.pyo", line 953, in _wcrevs
  File "mercurial\subrepo.pyo", line 936, in _svncommand
Abort: svn: 'C:\Depot\mos\apps\wxtest\external' is not a working copy

Doing a manual svn co on all of the failures results in ability to switch
branches, but... this is immensely painful when having to do it every single
time.

Addendum to bug: Would be nice if when switching between two .hgsub's, that
subrepos not existing in the new .hgsub be removed physically from the
filesystem.

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


More information about the Mercurial-devel mailing list