mercurial/manifest.c
changeset 24975 89c2bf63a83b
parent 24974 46408b80c3a1
child 27340 7b8b6e3b3571
equal deleted inserted replaced
24974:46408b80c3a1 24975:89c2bf63a83b
   245 									   l->len - consumed - 1);
   245 									   l->len - consumed - 1);
   246 	if (!path || !hash || !flags) {
   246 	if (!path || !hash || !flags) {
   247 		goto done;
   247 		goto done;
   248 	}
   248 	}
   249 	ret = PyTuple_Pack(3, path, hash, flags);
   249 	ret = PyTuple_Pack(3, path, hash, flags);
   250  done:
   250 done:
   251 	Py_XDECREF(path);
   251 	Py_XDECREF(path);
   252 	Py_XDECREF(hash);
   252 	Py_XDECREF(hash);
   253 	Py_XDECREF(flags);
   253 	Py_XDECREF(flags);
   254 	return ret;
   254 	return ret;
   255 }
   255 }
   670 	memcpy(copy->lines, self->lines, self->numlines * sizeof(line));
   670 	memcpy(copy->lines, self->lines, self->numlines * sizeof(line));
   671 	copy->maxlines = self->maxlines;
   671 	copy->maxlines = self->maxlines;
   672 	copy->pydata = self->pydata;
   672 	copy->pydata = self->pydata;
   673 	Py_INCREF(copy->pydata);
   673 	Py_INCREF(copy->pydata);
   674 	return copy;
   674 	return copy;
   675  nomem:
   675 nomem:
   676 	PyErr_NoMemory();
   676 	PyErr_NoMemory();
   677 	Py_XDECREF(copy);
   677 	Py_XDECREF(copy);
   678 	return NULL;
   678 	return NULL;
   679 }
   679 }
   680 
   680 
   722 		}
   722 		}
   723 		Py_DECREF(result);
   723 		Py_DECREF(result);
   724 	}
   724 	}
   725 	copy->livelines = copy->numlines;
   725 	copy->livelines = copy->numlines;
   726 	return copy;
   726 	return copy;
   727  nomem:
   727 nomem:
   728 	PyErr_NoMemory();
   728 	PyErr_NoMemory();
   729 	Py_XDECREF(copy);
   729 	Py_XDECREF(copy);
   730 	return NULL;
   730 	return NULL;
   731 }
   731 }
   732 
   732 
   843 		}
   843 		}
   844 		Py_DECREF(key);
   844 		Py_DECREF(key);
   845 	}
   845 	}
   846 	Py_DECREF(emptyTup);
   846 	Py_DECREF(emptyTup);
   847 	return ret;
   847 	return ret;
   848  nomem:
   848 nomem:
   849 	PyErr_NoMemory();
   849 	PyErr_NoMemory();
   850 	Py_XDECREF(ret);
   850 	Py_XDECREF(ret);
   851 	Py_XDECREF(emptyTup);
   851 	Py_XDECREF(emptyTup);
   852 	return NULL;
   852 	return NULL;
   853 }
   853 }