https://github.com/arlac77/svn-dav-fs
handler for 'svn+https' url scheme (plain js svn dav fs)
https://github.com/arlac77/svn-dav-fs
svn webdav
Last synced: 12 months ago
JSON representation
handler for 'svn+https' url scheme (plain js svn dav fs)
- Host: GitHub
- URL: https://github.com/arlac77/svn-dav-fs
- Owner: arlac77
- License: 0bsd
- Created: 2015-11-13T18:33:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-06-07T21:40:47.000Z (about 1 year ago)
- Last Synced: 2025-06-07T22:34:55.687Z (about 1 year ago)
- Topics: svn, webdav
- Language: JavaScript
- Homepage:
- Size: 1.5 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/svn-dav-fs)
[](https://spdx.org/licenses/0BSD.html)
[](https://bundlejs.com/?q=svn-dav-fs)
[](https://npmjs.org/package/svn-dav-fs)
[](https://github.com/arlac77/svn-dav-fs/issues)
[](https://actions-badge.atrox.dev/arlac77/svn-dav-fs/goto)
[](https://github.com/prettier/prettier)
[](http://commitizen.github.io/cz-cli/)
[](https://snyk.io/test/github/arlac77/svn-dav-fs)
[](https://coveralls.io/github/arlac77/svn-dav-fs)
# svn-dav-fs
handler for 'svn+https' url scheme (plain js svn dav fs)
# API
### Table of Contents
* [ActivityCollectionSet](#activitycollectionset)
* [Parameters](#parameters)
* [Properties](#properties)
* [repositoryRoot](#repositoryroot)
* [absoluteRepositoryRoot](#absoluterepositoryroot)
* [pathInsideRepository](#pathinsiderepository)
* [SVNHTTPSScheme](#svnhttpsscheme)
* [optionsRequest](#optionsrequest)
* [Parameters](#parameters-1)
* [activityCollectionSet](#activitycollectionset-1)
* [Parameters](#parameters-2)
* [userAgent](#useragent)
* [clientVersion](#clientversion)
* [davHeader](#davheader)
* [mkcol](#mkcol)
* [Parameters](#parameters-3)
* [Examples](#examples)
* [startTransaction](#starttransaction)
* [Parameters](#parameters-4)
* [Examples](#examples-1)
* [put](#put)
* [Parameters](#parameters-5)
* [optionsFromEnvironment](#optionsfromenvironment)
* [Parameters](#parameters-6)
* [encodeProperties](#encodeproperties)
* [Parameters](#parameters-7)
* [Examples](#examples-2)
## ActivityCollectionSet
### Parameters
* `url` **[URL](https://developer.mozilla.org/docs/Web/API/URL/URL)**
* `attributes` **[Map](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>**
* `davFeatures` **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
* `allowedMethods` **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
### Properties
* `url` **[URL](https://developer.mozilla.org/docs/Web/API/URL/URL)**
* `attributes` **[Map](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>**
* `davFeatures` **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
* `allowedMethods` **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
### repositoryRoot
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
### absoluteRepositoryRoot
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
### pathInsideRepository
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** path of the url inside of the repository
## SVNHTTPSScheme
**Extends HTTPSScheme**
URL scheme 'svn+https' svn over https
### optionsRequest
Execute options request
#### Parameters
* `context` **Context** execution context
* `url` **[URL](https://developer.mozilla.org/docs/Web/API/URL/URL)**
* `body` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** xml lines
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Request](https://developer.mozilla.org/Add-ons/SDK/High-Level_APIs/request)>**
### activityCollectionSet
query for the activity collection set.
#### Parameters
* `context` **Context** execution context
* `url` **[URL](https://developer.mozilla.org/docs/Web/API/URL/URL)**
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[ActivityCollectionSet](#activitycollectionset)>**
### userAgent
Delivers svn user agent
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** user agent identifier
### clientVersion
Delivers svn client version
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** version
### davHeader
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
### mkcol
#### Parameters
* `context` **Context**
* `url` **[URL](https://developer.mozilla.org/docs/Web/API/URL/URL)**
* `tx` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
#### Examples
```javascript
MKCOL /svn/delivery_notes/!svn/txr/1485-1cs/data/comp2 HTTP/1.1
DAV http://subversion.tigris.org/xmlns/dav/svn/depth
DAV http://subversion.tigris.org/xmlns/dav/svn/mergeinfo
DAV http://subversion.tigris.org/xmlns/dav/svn/log-revprops
```
### startTransaction
Start a new transaction
#### Parameters
* `context` **Context**
* `url` **ULR**
* `message` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
#### Examples
```javascript
POST /svn/delivery_notes/!svn/me HTTP/1.1
Content-Type application/vnd.svn-skel
DAV http://subversion.tigris.org/xmlns/dav/svn/depth
DAV http://subversion.tigris.org/xmlns/dav/svn/mergeinfo
DAV http://subversion.tigris.org/xmlns/dav/svn/log-revprops
(create-txn-with-props (svn:txn-user-agent 48 SVN/1.9.4 (x86_64-apple-darwin15.0.0) serf/1.3.8 svn:log 19 this is the message svn:txn-client-compat-version 5 1.9.4))
Response:
SVN-Txn-Name: 1483-1a1
```
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** acs, txn
### put
* **See**:
* **See**:
* **See**:
#### Parameters
* `context` **Context**
* `url` **[URL](https://developer.mozilla.org/docs/Web/API/URL/URL)**
* `stream` **ReadableStream**
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
### optionsFromEnvironment
Extract options suitable for the constructor
form the given set of environment variables
#### Parameters
* `env` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** undefined if no suitable environment variables have been found
## encodeProperties
Encodes objects into strings as used by svn
### Parameters
* `object` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** to be encoded
### Examples
```javascript
(create-txn-with-props
(svn:txn-user-agent 48 SVN/1.9.4 (x86_64-apple-darwin15.0.0) serf/1.3.8
svn:log 19 this is the message
svn:txn-client-compat-version 5 1.9.4))
```
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** encoded object value
# install
With [npm](http://npmjs.org) do:
```shell
npm install svn-dav-fs
```
# license
BSD-2-Clause