2011-11-30 21 views
17

Presupuesto de manual de SVN:Svn notación símbolo de intercalación no funciona en WinXP

In Subversion 1.6, a new caret (^) notation was introduced as a shorthand for “the URL of the repository's root directory”. For example, you can use the ^/tags/bigsandwich/ to refer to the URL of the /tags/bigsandwich directory in the root of the repository. Note that this URL syntax works only when your current working directory is a working copy—the command-line client knows the repository's root URL by looking at the working copy's metadata. Also note that when you wish to refer precisely to the root directory of the repository, you must do so using ^/ (with the trailing slash character), not merely ^.

Pero cuando corro:

C:\Svn_Working_Copies\Test1\branches\ver_1_0\Project1>svn log ^/ 

En mi estación de trabajo WinXP, usando svn versión 1.7, donde Prueba1 es una copia de trabajo de un repositorio svn obtengo el siguiente error:

svn: E155007: 'C:\' is not a working copy 

¿Qué está pasando?

Respuesta

24

El símbolo de intercalación es un carácter de escape para la línea de comandos de Windows. Use un doble cursor (por ejemplo, ^^).

+0

¡Muchas gracias! – Neutrino

+4

Tenga en cuenta que la cotización de la ruta también funciona (por ejemplo, svn log "^ /"). Opté por esto ya que estoy escribiendo ejemplos en documentación para Windows, Linux y Mac. –

+0

@JasonKostempski - Encuentro que en Windows 7 se debe utilizar la cita. – lit

Cuestiones relacionadas