Changeset 9ab67a1275ec…
Parent c494f491b120…
by
Changes to one file · Browse files at 9ab67a1275ec Showing diff from parent c494f491b120 Diff from another changeset...
@@ -82,6 +82,32 @@ };
+char direntry::status(const struct _stat& stat) const
+{
+ switch (this->state)
+ {
+ case 'n':
+ if (this->mtime == (unsigned)stat.st_mtime
+ && this->size == (unsigned)stat.st_size
+#ifndef WIN32
+ && this->mode == stat.st_mode
+#endif
+ )
+ return 'C';
+ else
+ return 'M';
+ case 'm':
+ return 'M';
+ case 'r':
+ return 'R';
+ case 'a':
+ return 'A';
+ default:
+ return '?';
+ }
+}
+
+
struct dirstate
{
char parent1[HASH_LENGTH];
@@ -206,32 +232,6 @@}
-char direntry::status(const struct _stat& stat) const
-{
- switch (this->state)
- {
- case 'n':
- if (this->mtime == (unsigned)stat.st_mtime
- && this->size == (unsigned)stat.st_size
-#ifndef WIN32
- && this->mode == stat.st_mode
-#endif
- )
- return 'C';
- else
- return 'M';
- case 'm':
- return 'M';
- case 'r':
- return 'R';
- case 'a':
- return 'A';
- default:
- return '?';
- }
-}
-
-
int HgQueryDirstate(
const std::string& hgroot, const char* abspath, std::string& relpath,
const dirstate*& ppd, struct _stat& rstat)
|
Loading...