Show More
@@ -471,7 +471,7 b' class dirstate(object):' | |||
|
471 | 471 | # check the common case first |
|
472 | 472 | if type_ == 'n': |
|
473 | 473 | if not st: |
|
474 | st = os.stat(self.wjoin(fn)) | |
|
474 | st = os.lstat(self.wjoin(fn)) | |
|
475 | 475 | if size >= 0 and (size != st.st_size |
|
476 | 476 | or (mode ^ st.st_mode) & 0100): |
|
477 | 477 | modified.append(fn) |
@@ -242,7 +242,7 b' class localrepository(object):' | |||
|
242 | 242 | raise repo.RepoError(_("unknown revision '%s'") % key) |
|
243 | 243 | |
|
244 | 244 | def dev(self): |
|
245 | return os.stat(self.path).st_dev | |
|
245 | return os.lstat(self.path).st_dev | |
|
246 | 246 | |
|
247 | 247 | def local(self): |
|
248 | 248 | return True |
@@ -474,7 +474,7 b' def _readlock_file(pathname):' | |||
|
474 | 474 | |
|
475 | 475 | def nlinks(pathname): |
|
476 | 476 | """Return number of hardlinks for the given file.""" |
|
477 | return os.stat(pathname).st_nlink | |
|
477 | return os.lstat(pathname).st_nlink | |
|
478 | 478 | |
|
479 | 479 | if hasattr(os, 'link'): |
|
480 | 480 | os_link = os.link |
@@ -625,10 +625,10 b' else:' | |||
|
625 | 625 | |
|
626 | 626 | def is_exec(f, last): |
|
627 | 627 | """check whether a file is executable""" |
|
628 | return (os.stat(f).st_mode & 0100 != 0) | |
|
628 | return (os.lstat(f).st_mode & 0100 != 0) | |
|
629 | 629 | |
|
630 | 630 | def set_exec(f, mode): |
|
631 | s = os.stat(f).st_mode | |
|
631 | s = os.lstat(f).st_mode | |
|
632 | 632 | if (s & 0100 != 0) == mode: |
|
633 | 633 | return |
|
634 | 634 | if mode: |
General Comments 0
You need to be logged in to leave comments.
Login now