Skip to main content

Subversion

Whatโ€‹

Display subversion information when in a subversion repository. Also works for subfolders. For maximum compatibility, make sure your svn executable is up-to-date (when branch or status information is incorrect for example).

Sample Configurationโ€‹

{
"type": "svn",
"style": "powerline",
"powerline_symbol": "๎‚ฐ",
"foreground": "#193549",
"background": "#ffeb3b",
"properties": {
"fetch_status": true
}
}

Propertiesโ€‹

Fetching informationโ€‹

As doing multiple subversion calls can slow down the prompt experience, we do not fetch information by default. You can set the following properties to true to enable fetching additional information (and populate the template).

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

The fields Repo, Branch and BaseRev will still work with fetch_status set to false.

Template (info)โ€‹

default template
 \ue0a0{{.Branch}} r{{.BaseRev}} {{.Working.String}}

Propertiesโ€‹

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)

Statusโ€‹

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

Local changes use the following syntax:

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