123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- (require 'url)
- (require 'url-dav)
- (defun vc-dav-registered (url)
- "Return t if URL is registered with a DAV aware server."
- (url-dav-vc-registered url))
- (defun vc-dav-state (url)
- "Return the current version control state of URL.
- For a list of possible values, see `vc-state'."
-
-
-
-
-
-
-
-
-
-
- (let ((locks (url-dav-active-locks url)))
- (cond
- ((null locks) 'up-to-date)
- ((assoc url locks)
-
- (setq locks (cdr (assoc url locks)))
- (if (rassoc url-dav-lock-identifier locks)
-
- 'edited
- (cdr (car locks)))))))
- (defun vc-dav-checkout-model (url)
- "Indicate whether URL needs to be \"checked out\" before it can be edited.
- See `vc-checkout-model' for a list of possible values."
-
- 'locking)
- (defun vc-dav-workfile-version (url)
- "Return the current workfile version of URL."
- "Unknown")
- (defun vc-dav-register (url &optional rev comment)
- "Register URL in the DAV backend."
-
- )
- (defun vc-dav-checkin (url rev comment)
- "Commit changes in URL to WebDAV.
- If REV is non-nil, that should become the new revision number.
- COMMENT is used as a check-in comment."
-
- )
- (defun vc-dav-checkout (url &optional editable rev destfile)
- "Check out revision REV of URL into the working area.
- If EDITABLE is non-nil URL should be writable by the user and if
- locking is used for URL, a lock should also be set.
- If REV is non-nil, that is the revision to check out. If REV is the
- empty string, that means to check ou tht ehead of the trunk.
- If optional arg DESTFILE is given, it is an alternate filename to
- write the contents to.
- "
-
- )
- (defun vc-dav-revert (url &optional contents-done)
- "Revert URL back to the current workfile version.
- If optional arg CONTENTS-DONE is non-nil, then the contents of FILE
- have already been reverted from a version backup, and this function
- only needs to update the status of URL within the backend.
- "
-
-
- )
- (defun vc-dav-print-log (url)
- "Insert the revision log of URL into the *vc* buffer."
- )
- (defun vc-dav-diff (url &optional rev1 rev2)
- "Insert the diff for URL into the *vc-diff* buffer.
- If REV1 and REV2 are non-nil report differences from REV1 to REV2.
- If REV1 is nil, use the current workfile version as the older version.
- If REV2 is nil, use the current workfile contents as the nwer version.
- It should return a status of either 0 (no differences found), or
- 1 (either non-empty diff or the diff is run asynchronously).
- "
-
-
- )
- (defun vc-dav-state-heuristic (url)
- "Estimate the version control state of URL at visiting time."
- (vc-dav-state url))
- (defun vc-dav-dir-state (url)
- "find the version control state of all files in DIR in a fast way."
- )
- (defun vc-dav-workfile-unchanged-p (url)
- "Return non-nil if URL is unchanged from its current workfile version."
-
- )
- (defun vc-dav-responsible-p (url)
- "Return non-nil if DAV considers itself `responsible' for URL."
-
- t)
- (defun vc-dav-could-register (url)
- "Return non-nil if URL could be registered under this backend."
-
- t)
- (provide 'vc-dav)
|