##// END OF EJS Templates
dirstate-v2: Swap the order of size and mtime on disk...
Simon Sapin -
r49003:6e01bcd1 default
parent child Browse files
Show More
@@ -424,15 +424,15 b' Node components are:'
424 Only the `S_IXUSR` bit (owner has execute permission) is considered.
424 Only the `S_IXUSR` bit (owner has execute permission) is considered.
425
425
426 * Offset 35:
426 * Offset 35:
427 If `HAS_MTIME` is unset, four zero bytes.
427 If `HAS_MODE_AND_SIZE` is unset, four zero bytes.
428 Otherwise, a 32-bit integer for expected modified time of the file
428 Otherwise, a 32-bit integer for expected size of the file
429 (as in `stat_result.st_mtime`),
430 truncated to its 31 least-significant bits.
429 truncated to its 31 least-significant bits.
431 Unlike in dirstate-v1, negative values are not used.
430 Unlike in dirstate-v1, negative values are not used.
432
431
433 * Offset 39:
432 * Offset 39:
434 If `HAS_MODE_AND_SIZE` is unset, four zero bytes.
433 If `HAS_MTIME` is unset, four zero bytes.
435 Otherwise, a 32-bit integer for expected size of the file
434 Otherwise, a 32-bit integer for expected modified time of the file
435 (as in `stat_result.st_mtime`),
436 truncated to its 31 least-significant bits.
436 truncated to its 31 least-significant bits.
437 Unlike in dirstate-v1, negative values are not used.
437 Unlike in dirstate-v1, negative values are not used.
438
438
@@ -114,8 +114,8 b' bitflags! {'
114 #[repr(C)]
114 #[repr(C)]
115 struct Entry {
115 struct Entry {
116 mode: I32Be,
116 mode: I32Be,
117 size: I32Be,
117 mtime: I32Be,
118 mtime: I32Be,
118 size: I32Be,
119 }
119 }
120
120
121 /// Duration since the Unix epoch
121 /// Duration since the Unix epoch
General Comments 0
You need to be logged in to leave comments. Login now