mercurial/cext/parsers.c
changeset 48262 68bb472aee9c
parent 48261 9205d9be8b41
child 48264 bb240915f69f
equal deleted inserted replaced
48261:9205d9be8b41 48262:68bb472aee9c
   317 	int other_ns;
   317 	int other_ns;
   318 	if (!PyArg_ParseTuple(other, "ii", &other_s, &other_ns)) {
   318 	if (!PyArg_ParseTuple(other, "ii", &other_s, &other_ns)) {
   319 		return NULL;
   319 		return NULL;
   320 	}
   320 	}
   321 	if ((self->flags & dirstate_flag_has_file_mtime) &&
   321 	if ((self->flags & dirstate_flag_has_file_mtime) &&
   322 	    self->mtime_s == other_s && self->mtime_ns == other_ns) {
   322 	    self->mtime_s == other_s &&
       
   323 	    (self->mtime_ns == other_ns || self->mtime_ns == 0 ||
       
   324 	     other_ns == 0)) {
   323 		Py_RETURN_TRUE;
   325 		Py_RETURN_TRUE;
   324 	} else {
   326 	} else {
   325 		Py_RETURN_FALSE;
   327 		Py_RETURN_FALSE;
   326 	}
   328 	}
   327 };
   329 };