Aller au contenu principal

Subversion

Traduction Bêta Non Officielle

Cette page a été traduite par PageTurner AI (bêta). Non approuvée officiellement par le projet. Vous avez trouvé une erreur ? Signaler un problème →

Description

Affiche les informations de Subversion dans un dépôt Subversion. Fonctionne également pour les sous-dossiers. Pour une compatibilité optimale, assurez-vous que votre exécutable svn est à jour (par exemple lorsque les informations de branche ou d'état sont incorrectes).

Exemple de configuration

{
"type": "svn",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#193549",
"background": "#ffeb3b",
"options": {
"fetch_status": true
}
}

Options

Récupération des informations

Étant donné que plusieurs appels à Subversion peuvent ralentir le prompt, nous ne récupérons pas les informations par défaut. Vous pouvez définir les options suivantes sur true pour activer la récupération d'informations supplémentaires (et remplir le modèle).

NameTypeDefaultDescription
fetch_statusbooleanfalsefetch the local changes
native_fallbackbooleanfalsewhen set to true and svn.exe is not available when inside a WSL2 shared Windows drive, we will fallback to the native svn executable to fetch data. Not all information can be displayed in this case
status_formatsmap[string]stringa key, value map allowing to override how individual status items are displayed. For example, "status_formats": { "Added": "Added: %d" } will display the added count as Added: 1 instead of +1. See the Status section for available overrides
info

Les champs Repo, Branch et BaseRev fonctionneront toujours avec fetch_status défini sur false.

Modèle (info)

modèle par défaut
 \ue0a0{{.Branch}} r{{.BaseRev}} {{.Working.String}}

Propriétés

NameTypeDescription
.WorkingStatuschanges in the worktree (see below)
.Branchstringcurrent branch (relative URL reported by svn info)
.BaseRevintthe currently checked out revision number
.Repostringcurrent repository (repos root URL reported by svn info)

État

NameTypeDescription
.Untrackedintnumber of files not under version control
.Modifiedintnumber of modified files
.Deletedintnumber of deleted files
.Addedintnumber of added files
.Movedintnumber of changed moved files
.Conflictedintnumber of changed tracked files with conflicts
.Changedbooleanif the status contains changes or not
.HasConflictsbooleanif the status contains conflicts or not
.Stringstringa string representation of the changes above

Les modifications locales utilisent la syntaxe suivante :

IconDescription
?Untracked
~Modified
-Deleted
+Added
>Moved
!Conflicted