Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-3351

can't remove file externals

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • trunk
    • 1.7.0
    • libsvn_wc

    Description

      [ Originally posted on
      <http://article.gmane.org/gmane.comp.version-control.subversion.devel/106098>
      (Subject: Re: Problems with file externals, Date: 2008-10-30 14:00:42 GMT,
      Message-ID: <alpine.561.2.00.0810301554030.10224@daniel2.local>) ]
      
      Summary: There doesn't seem to be support to removing a file external that
      hasn't been committed yet.
      
      Transcript (copied from the email there):
      
      > > My shell session went like this...
      > > 
      > > > % rd/s/q commit-access-templates
      > > > 
      > 
      > (that's in my svn trunk wc, yes?)
      > 
      > > > % svn up -q
      > > > 
      > > > % cd commit-access-templates
      > > > 
      > > > % svn ps svn:externals "^/trunk/README myreadme" .
      > > > property 'svn:externals' set on '.'
      > > > 
      > > > % svn up
      > > > 
      > > > Fetching external item into 'myreadme'
      > > > E    myreadme
      > [snip conflict 'C    .' line, since HEAD doesn't print it ]
      > > > Updated external to revision 33544.
      > > > 
      > > 
      > > Huh?  'svn help up' says that 'E' means 'Existed'.  And it certainly
      > > didn't exist.  I suggest to use 'X' for new externals.
      > > 
      > [ snipped question about the conflict line which isn't printed now ]
      > > > Updated to revision 33544.
      > > > 
      > > > % svn st
      > > >  M      .
      > > >     X   myreadme
      > > > 
      > > 
      > > Okay, it's here.  Now let's remove it, the same way it was pulled in:
      > > 
      > > > % svn pd svn:externals .
      > > > property 'svn:externals' deleted from '.'.
      > > > 
      > > > % svn up
      > > > At revision 33544.
      > > > 
      > > 
      > > It should be gone now.  But it isn't:
      > > 
      > > > % svn st
      > > >     X   myreadme
      > > > 
      > > > % ls myreadme
      > > > myreadme
      > > > 
      > > 
      > > Let's try to remove it anyway:
      > > 
      > 
      > I also tried 'svn rm', see below.
      > 
      > > > % del myreadme
      > > > 
      > 
      >     % svn rm myreadme
      >     ..\..\..\subversion\libsvn_wc\adm_ops.c:1151: (apr_err=155030)
      >     svn: Cannot remove the file external at 'myreadme'; please propedit or
      propdel the svn:externals
      > description that created it
      > 
      > > > % svn st
      > > > !   X   myreadme
      > > > 
      > > > % svn revert -R . myreadme
      > > > Reverted 'myreadme'
      > > > 
      > > > % svn st
      > > >     X   myreadme
      > > > 
      > > 
      > 
      > And my question remains:
      > 
      > > How do I get rid of it?
      > > 
      > > > %
      > 
      
      Found in trunk (HEAD as of the email's date).
      

      http://permalink.gmane.org/gmane.comp.version-control.subversion.devel/105265

      Attachments

        Issue Links

          Activity

            People

              rhuijben Bert Huijben
              danielsh Daniel Shahaf
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: