SVNBOOK Chap1 Subversion in Action How Working Copies Track the Repository

Un article de Framalang Wiki.

Jump to: navigation, search

Cette page fait partie du projet Version control with subversion.


Pseudo Code Rôle Statut
Penguin Traduction Terminé
Relecture
Validation



Sommaire

[modifier] Titre

How Working Copies Track the Repository
Comment les Copies de Travail Surveillent le Dépôt

[modifier] 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 dans le répertoire de travail, Subversion enregistre deux informations essentielles dans la zone administrative .svn/ :

  • sur quelle révision votre fichier de travail est basé (qui est appelé la révision de travail du fichier), et
  • une date indiquant le moment de la dernière mise à jour de la copie locale depuis le dépôt

[modifier] 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 cette information, en dialogant avec le dépôt, Subversion est capable de dire dans lequel des quatre états suivants se trouve un fichier de travail:

Inchangé, et courant

Le fichier est inchangé dans le répertoire de travail. Un appel à svn commit (livraison) sur le fichier ne fera rien, un appel à svn update (mise à jour) sur ce fichier ne fera rien non plus.

[modifier] 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 courant

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

[modifier] 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 été modifié dans le dépôt. Le fichier doit finalement être mis à jour, pour le rendre courant avec la dernière révision publique. Un appel à svn commit sur le fichier ne fera rien, et un appel à svn update va incorporer les dernières modifications dans votre copie de travail.

[modifier] 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 avec une 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 peut pas réaliser automatiquement cette fusion de manière crédible, il va laisser à l'utilisateur la résolution du conflit.

[modifier] 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”.
Il peut sembler qu'il y a beaucoup de choses à surveiller, mais la commande svn status va vous montrer dans quel état est 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".