2010-07-10 10 views
5

Non riesco a visualizzare l'opzione di commit dopo aver apportato modifiche alla mia copia di lavoro, ma mi sono assicurato che le mie impostazioni per svn fossero corrette.Come evitare "Xcode, Subversion Error: 155007 (Path is not a copy directory di lavoro)"?

Qual è esattamente il problema con questo messaggio di errore?

Xcode sta mostrando:

Your path is not a working copy

Cosa devo fare per risolvere questo?

+2

Subversion in realtà ha dato un errore "ur path non è un coppy funzionante"? – Ether

+0

non sono stato in grado di aggiornare le modifiche al mio progetto in svn .. quando faccio clic con il pulsante destro del mouse sul file non viene visualizzata l'opzione di modifica dei commit. Atleast non mostra il simbolo M ...... –

risposta

6

Il post del blog "Xcode, Subversion Error: 155007 (Path is not a working copy directory)" e il suo commento sono praticamente il riferimento a questo tipo di errore.

Semplice Soluzione:

  1. Cancella la copia locale (cd myxcodeproject; rm -rf .)
  2. Eliminare la cartella “build” dal server
  3. svn co https://svnserver/path/trunk/project .

Now you should see .svn folders in every directory of your local project (you don’t see them if you use the “ Export ” function of the SCM panel from Xcode).
At this point, you should be able to edit and commit your changes directly from Xcode.

Ora è necessario per initi alize correttamente il progetto.
Le sezioni seguenti illustrano che parte:

Come farlo bene (principio generale)

To place the project under Xcode, you need to first import it.
The SCM->commit entire project… gives error 155007 if you don’t first do this:

Under the SCM menu in Xcode select Repositories, then click the IMPORT icon at the top of that dialog that appears.
Select the project from the list and then click the import button.

Of course you need to first configure at least one repository before doing the steps above.

fasi di inizializzazione destro (processo dettagliato)

  1. Create the project in XCODE.
  2. Setup subversion in XCODE and select the subversion repository for this project.
  3. Use Xcode SCM > Repository and click on the IMPORT icon. This will move the local copy to the subversion repository.
  4. Now delete your local copy (or move it to another location just in case).
  5. Finally CHECKOUT the project from subversion (this will create the subversion .svn folders, …).
  6. Reselect the subversion repository for this project.
  7. Commit the entire project.
+0

svn co https: // svnserver/path/trunk/project. questo significa? –

+0

@Iak: è un percorso generico per un repository SVN, fornito qui come esempio. Significa che devi eseguire il checkout del tuo repository SVN, sostituendo "' svnserver/path/trunk/project' "dal tuo percorso repo SVN. Notare il punto fine, che indica che si sta eseguendo il checkout del repository SVN nel percorso corrente ("' myxcodeproject' "qui, di nuovo un nome generico di directory fornito come esempio). – VonC

Problemi correlati