mercurial/cext/parsers.c
changeset 48447 af303ae33cd7
parent 48446 111098af6356
child 48448 0b3f3a3ca50a
equal deleted inserted replaced
48446:111098af6356 48447:af303ae33cd7
   333 	int other_second_ambiguous;
   333 	int other_second_ambiguous;
   334 	if (!PyArg_ParseTuple(other, "iii", &other_s, &other_ns,
   334 	if (!PyArg_ParseTuple(other, "iii", &other_s, &other_ns,
   335 	                      &other_second_ambiguous)) {
   335 	                      &other_second_ambiguous)) {
   336 		return NULL;
   336 		return NULL;
   337 	}
   337 	}
   338 	if ((self->flags & dirstate_flag_has_mtime) &&
   338 	if (!(self->flags & dirstate_flag_has_mtime)) {
   339 	    self->mtime_s == other_s &&
   339 		Py_RETURN_FALSE;
   340 	    (self->mtime_ns == other_ns || self->mtime_ns == 0 ||
   340 	}
   341 	     other_ns == 0)) {
   341 	if (self->mtime_s != other_s) {
       
   342 		Py_RETURN_FALSE;
       
   343 	}
       
   344 	if (self->mtime_ns == 0 || other_ns == 0) {
       
   345 		if (self->flags & dirstate_flag_mtime_second_ambiguous) {
       
   346 			Py_RETURN_FALSE;
       
   347 		} else {
       
   348 			Py_RETURN_TRUE;
       
   349 		}
       
   350 	}
       
   351 	if (self->mtime_ns == other_ns) {
   342 		Py_RETURN_TRUE;
   352 		Py_RETURN_TRUE;
   343 	} else {
   353 	} else {
   344 		Py_RETURN_FALSE;
   354 		Py_RETURN_FALSE;
   345 	}
   355 	}
   346 };
   356 };