SVNBOOK Chap2 Examining History Browsing the repository

De Framalang Wiki.

Cette page fait partie du projet Version control with subversion.

Pseudo Code Rôle Statut
Hotshot92 Traduction Fait
SVF Mise à jour en dernière version 1.5 Fait
SVF 1ère Relecture Fait
Validation


Sommaire

Browsing the Repository

Browsing the Repository

Naviguer dans le dépôt

Using svn cat and svn list, you can view various revisions of files and directories without changing the working revision of your working copy. In fact, you don't even need a working copy to use either one.

Grâce aux commandes svn cat et svn list, vous pouvez afficher des révisions variées des fichiers et répertoires sans changer la révision de votre copie de travail. En fait, vous n'avez même pas besoin d'avoir une copie de travail pour les utiliser.

svn cat

svn cat

svn cat

If you want to examine an earlier version of a file and not necessarily the differences between two files, you can use svn cat:

  $ svn cat -r 2 rules.txt
  Be kind to others
  Freedom = Chocolate Ice Cream
  Everything in moderation
  Chew with your mouth open
  $

Si vous voulez examiner une version antérieure d'un fichier et pas nécessairement les différences entre deux fichiers, vous pouvez utiliser svn cat :

  $ svn cat -r 2 regles.txt
  Être attentif envers les autres
  Liberté = Glace Au Chocolat 
  Tout dans la modération
  Mâcher la bouche ouverte
  $

You can also redirect the output directly into a file:

  $ svn cat -r 2 rules.txt > rules.txt.v2
  $

Vous pouvez également rediriger la sortie de svn cat directement dans un fichier :

  $ svn cat -r 2 regles.txt > regles.txt.v2
  $

svn list

svn list

svn list

The svn list command shows you what files are in a repository directory without actually downloading the files to your local machine:

  $ svn list http://svn.collab.net/repos/svn
  README
  branches/
  clients/
  tags/
  trunk/

If you want a more detailed listing, pass the --verbose (-v) flag to get output like this:

  $ svn list -v http://svn.collab.net/repos/svn
    20620 harry            1084 Jul 13  2006 README
    23339 harry                 Feb 04 01:40 branches/
    21282 sally                 Aug 27 09:41 developer-resources/
    23198 harry                 Jan 23 17:17 tags/
    23351 sally                 Feb 05 13:26 trunk/

The columns tell you the revision at which the file or directory was last modified, the user who modified it, the size if it is a file, the date it was last modified, and the item's name.

La commande svn list liste les fichiers présents dans le dépôt sans pour autant les télécharger :

  $ svn list http://svn.collab.net/repos/svn
  README
  branches/
  clients/
  tags/
  trunk/

Si vous désirez une liste plus détaillée, passez l'option --verbose (-v) et vous obtiendrez quelque chose comme ça :

  $ svn list -v http://svn.collab.net/repos/svn
    20620 harry            1084 13 juil.  2006 README
    23339 harry                 04 févr., 01:40 branches/
    21282 sally                 27 août   09:41 developer-resources/
    23198 harry                 23 janv., 17:17 tags/
    23351 sally                 05 févr., 05 13:26 trunk/
--Sub Versif 9 mars 2009 à 17:44 (CET) : Ce dépôt existant réellement, il me semble judicieux d'en laisser l'adresse exacte.
WARNING
The svn list command with no arguments defaults to the repository URL of the current working directory, not the local working copy directory. After all, if you want a listing of your local directory, you could use just plain ls (or any reasonable non-Unixy equivalent).
La commande svn list sans argument prend pour cible l'URL du dépôt correspondant au répertoire local actuel, pas le répertoire actuel de la copie de travail. Après tout, si vous voulez voir le contenu de votre répertoire local, vous pouvez utiliser ls, tout simplement (ou l'équivalent sur votre système non Unix).
--Sub Versif 9 mars 2009 à 17:44 (CET) : Argl, "correspondant" ou "correspondante" ?