Changeset View
Changeset View
Standalone View
Standalone View
mercurial/cext/parsers.c
Show First 20 Lines • Show All 414 Lines • ▼ Show 20 Line(s) | if (!PyArg_ParseTuple(args, "iiii", &t->flags, &t->size, &t->mtime_s, | ||||
&t->mtime_ns)) { | &t->mtime_ns)) { | ||||
return NULL; | return NULL; | ||||
} | } | ||||
if (t->flags & dirstate_flag_expected_state_is_modified) { | if (t->flags & dirstate_flag_expected_state_is_modified) { | ||||
t->flags &= ~(dirstate_flag_expected_state_is_modified | | t->flags &= ~(dirstate_flag_expected_state_is_modified | | ||||
dirstate_flag_has_meaningful_data | | dirstate_flag_has_meaningful_data | | ||||
dirstate_flag_has_file_mtime); | dirstate_flag_has_file_mtime); | ||||
} | } | ||||
if (t->flags & dirstate_flag_mtime_second_ambiguous) { | |||||
/* The current code is not able to do the more subtle comparison | |||||
* that the MTIME_SECOND_AMBIGUOUS requires. So we ignore the | |||||
* mtime */ | |||||
t->flags &= ~(dirstate_flag_mtime_second_ambiguous | | |||||
dirstate_flag_has_meaningful_data | | |||||
dirstate_flag_has_file_mtime); | |||||
} | |||||
t->mode = 0; | t->mode = 0; | ||||
if (t->flags & dirstate_flag_has_meaningful_data) { | if (t->flags & dirstate_flag_has_meaningful_data) { | ||||
if (t->flags & dirstate_flag_mode_exec_perm) { | if (t->flags & dirstate_flag_mode_exec_perm) { | ||||
t->mode = 0755; | t->mode = 0755; | ||||
} else { | } else { | ||||
t->mode = 0644; | t->mode = 0644; | ||||
} | } | ||||
if (t->flags & dirstate_flag_mode_is_symlink) { | if (t->flags & dirstate_flag_mode_is_symlink) { | ||||
▲ Show 20 Lines • Show All 881 Lines • Show Last 20 Lines |