SVNBOOK Chap1 Subversion in Action How Working Copies Track the Repository

De Framalang Wiki.

Cette page fait partie du projet Version control with subversion.


Pseudo Code Rôle Statut
Penguin Traduction Terminé
SVF 1ère Relecture Fait
HST vérification conformité version 1.5 Fait
Relecture
Validation



Sommaire

Titre

How Working Copies Track the Repository
Comment les Copies de Travail Suivent l'Évolution du Dépôt
--Sub Versif 3 mars 2009 à 10:36 (CET) : Titre bien difficile à traduire... aucun équivalent satisfaisant de "track" ne m'est apparu.

Paragraphe 1

For each file in a working directory, Subversion records two essential pieces of information in the .svn/ administrative area:

  • what revision your working file is based on (this is called the file's working revision), and
  • a timestamp recording when the local copy was last updated by the repository.

Pour chaque fichier d'un répertoire de travail, Subversion enregistre deux informations essentielles dans la zone administrative .svn/ :

  • la révision sur laquelle votre fichier de travail est basé (qui est appelée la révision de travail du fichier), et
  • la date et l'heure de la dernière mise à jour de la copie locale depuis le dépôt

Paragraphe 2

Given this information, by talking to the repository, Subversion can tell which of the following four states a working file is in:

Unchanged, and current

The file is unchanged in the working directory, and no changes to that file have been committed to the repository since its working revision. An svn commit of the file will do nothing, and an svn update of the file will do nothing.

A partir de ces informations, en dialoguant avec le dépôt, Subversion est capable de déterminer dans lequel des quatre états suivants se trouve un fichier de travail :

Inchangé, et à jour

Le fichier est inchangé dans le répertoire de travail, et aucune modification de ce fichier n'a été propagée vers le dépôt depuis sa dernière révision de travail. Un appel à svn commit sur ce fichier ne fera rien, un appel à svn update sur le fichier ne fera rien non plus.

Paragraphe 3

Locally changed, and current

The file has been changed in the working directory, and no changes to that file have been committed to the repository since you last updated. There are local changes that have not been committed to the repository, thus an svn commit of the file will succeed in publishing your changes, and an svn update of the file will do nothing.

Modifié localement, et à jour

Le fichier a été modifié dans le répertoire de travail, et aucune modification du fichier n'a été propagée dans le dépôt depuis la dernière mise à jour. Il existe des modifications locales qui n'ont pas été propagées vers le dépôt, donc un appel à svn commit pour ce fichier permettra de publier vos modifications, et un appel à svn update ne fera rien.

Paragraphe 4

Unchanged, and out-of-date

The file has not been changed in the working directory, but it has been changed in the repository. The file should eventually be updated, to make it current with the latest public revision. An svn commit of the file will do nothing, and an svn update of the file will fold the latest changes into your working copy.

Inchangé, et périmé

Le fichier n'a pas été modifié dans le répertoire de travail, mais a changé dans le dépôt. Le fichier devra être mis à jour à un moment ou à un autre, pour l'amener au niveau de la dernière révision publique. Un appel à svn commit sur le fichier ne fera rien, et un appel à svn update incorporera les dernières modifications dans votre copie de travail.

Paragraphe 5

Locally changed, and out-of-date

The file has been changed both in the working directory, and in the repository. An svn commit of the file will fail with an “out-of-date” error. The file should be updated first; an svn update command will attempt to merge the public changes with the local changes. If Subversion can't complete the merge in a plausible way automatically, it leaves it to the user to resolve the conflict.

Modifié localement, et périmé

Le fichier a été modifié à la fois dans le répertoire de travail et dans le dépôt. Un appel à svn commit sur le fichier va échouer, renvoyant comme erreur "périmé" ("out-of-date" en anglais). Le fichier doit d'abord être mis à jour ; un appel à svn update va tenter de fusionner les modifications publiques avec les modifications locales. Si Subversion ne parvient pas à réaliser automatiquement cette fusion de manière crédible, il va laisser à l'utilisateur résoudre le conflit.

Paragraphe 6

This may sound like a lot to keep track of, but the svn status command will show you the state of any item in your working copy. For more information on that command, see the section called “See an overview of your changes”.
Tout ceci pourrait sembler compliqué à gérer, mais la commande svn status vous indiquera dans quel état se trouve n'importe quel élément de votre copie de travail. Pour plus d'informations sur cette commande, référez-vous à la section appelée "Avoir un aperçu de vos modifications".