Show
Ignore:
Timestamp:
06/02/07 09:29:41 (1 year ago)
Author:
miyoshi
Message:

Sync up with Emacs_22_BASE.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lisp/vc-hooks.el

    r4204 r4210  
    316316  ;; witnesses in /home or in /. 
    317317  (setq file (abbreviate-file-name file)) 
    318   (let ((root nil)) 
     318  (let ((root nil) 
     319        (user (nth 2 (file-attributes file)))) 
    319320    (while (not (or root 
    320321                   (equal file (setq file (file-name-directory file))) 
    321322                   (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)))) 
    322329                   (string-match vc-ignore-dir-regexp file))) 
    323330      (if (file-exists-p (expand-file-name witness file))