Changeset 4210 for trunk/lisp/vc-hooks.el
- Timestamp:
- 06/02/07 09:29:41 (1 year ago)
- Files:
-
- trunk/lisp/vc-hooks.el (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/vc-hooks.el
r4204 r4210 316 316 ;; witnesses in /home or in /. 317 317 (setq file (abbreviate-file-name file)) 318 (let ((root nil)) 318 (let ((root nil) 319 (user (nth 2 (file-attributes file)))) 319 320 (while (not (or root 320 321 (equal file (setq file (file-name-directory file))) 321 322 (null file) 323 ;; As a heuristic, we stop looking up the hierarchy of 324 ;; directories as soon as we find a directory belonging 325 ;; to another user. This should save us from looking in 326 ;; things like /net and /afs. This assumes that all the 327 ;; files inside a project belong to the same user. 328 (not (equal user (nth 2 (file-attributes file)))) 322 329 (string-match vc-ignore-dir-regexp file))) 323 330 (if (file-exists-p (expand-file-name witness file))
