diff -r 7537e57f5dbd -r e250b8300e6e mercurial/util.h --- a/mercurial/util.h Tue May 27 17:10:28 2014 -0700 +++ b/mercurial/util.h Tue May 27 14:27:41 2014 -0700 @@ -151,6 +151,17 @@ #define inline __inline #endif +typedef struct { + PyObject_HEAD + char state; + int mode; + int size; + int mtime; +} dirstateTupleObject; + +PyTypeObject dirstateTupleType; +#define dirstate_tuple_check(op) (Py_TYPE(op) == &dirstateTupleType) + static inline uint32_t getbe32(const char *c) { const unsigned char *d = (const unsigned char *)c;