##// END OF EJS Templates
parsers: don't ask about symlinks on platforms that don't support them...
Raphaël Gomès -
r49101:126feb80 default
parent child Browse files
Show More
@@ -270,11 +270,16 b' static PyObject *dirstate_item_v2_data(d'
270 270 #else
271 271 flags &= ~dirstate_flag_mode_exec_perm;
272 272 #endif
273 #ifdef S_ISLNK
274 /* This is for platforms with support for symlinks */
273 275 if (S_ISLNK(mode)) {
274 276 flags |= dirstate_flag_mode_is_symlink;
275 277 } else {
276 278 flags &= ~dirstate_flag_mode_is_symlink;
277 279 }
280 #else
281 flags &= ~dirstate_flag_mode_is_symlink;
282 #endif
278 283 return Py_BuildValue("iiii", flags, self->size, self->mtime_s,
279 284 self->mtime_ns);
280 285 };
General Comments 0
You need to be logged in to leave comments. Login now