Created on 2009-08-10.20:52:20 by MikeHoward, last changed 2010-07-22.08:36:53 by mg.
| msg12110 (view) |
Author: tonfa |
Date: 2010-03-20.21:34:51 |
|
I'm wrong, the decodefunction doesn't really matter, sorry.
|
| msg12109 (view) |
Author: tonfa |
Date: 2010-03-20.21:10:13 |
|
We should have done something like that in the first place:
diff --git a/mercurial/store.py b/mercurial/store.py
--- a/mercurial/store.py
+++ b/mercurial/store.py
@@ -51,7 +51,15 @@
except KeyError:
pass
else:
- raise KeyError
+ if s[i] != '~':
+ raise KeyError
+
+ try:
+ val = int(s[i + 1: i + 3], 10)
+ except ValueError:
+ raise KeyError
+ yield chr(val)
+ i += 3
return (lambda s: "".join([cmap[c] for c in encodedir(s)]),
lambda s: decodedir("".join(list(decode(s)))))
That would allow us to add new patterns to encode
|
| msg12036 (view) |
Author: danchr |
Date: 2010-03-12.22:16:09 |
|
In order to fix this bug, it would seem so. On the Mercurial list, Adrian
Buehlmann mentioned a similar Windows bug, filed as issue1713.
I don't know much about how fncache actually works, but it seems to me that it
would be preferable to avoid ever creating files whose names begin with a dot
or a space. While ‘.[^_]*’ should be safe, such files are normally hidden in
shells, and that seems inappropriate for the store.
|
| msg11845 (view) |
Author: djc |
Date: 2010-02-22.19:49:10 |
|
Ugh, we have to rev the store version again?
|
| msg10312 (view) |
Author: danchr |
Date: 2009-08-11.07:19:22 |
|
I'd consider this a bug in Mercurial; dot-underscore files are generally
treated specially on Mac OS X, and the ‘fncache’ repository storage shouldn't
generate those.
I took the liberty of changing the priority to »bug«.
|
| msg10311 (view) |
Author: MikeHoward |
Date: 2009-08-11.00:51:10 |
|
That makes a lot of sense and is consistent with what I've seen. It probably
makes sense for mercurial to automatically ignore 'resource fork' files
since they don't contain user (directly) created data. It would make the
repository more robust.
I have a call in to Apple to try to find out what they are actually backing
up via Time Machine - where I don't see any dot files of any kind.
|
| msg10309 (view) |
Author: smarks |
Date: 2009-08-10.23:45:13 |
|
The Mac stores the "resource fork" of files in a file prefixed with "._", on
filesystems that don't support resource forks natively (e.g. SMB). See
http://en.wikipedia.org/wiki/Resource_fork
In general dot-files should be OK, however, there are probably a bunch of
special cases in the Mac code where the "._" prefix is treated specially.
|
| msg10308 (view) |
Author: MikeHoward |
Date: 2009-08-10.20:52:19 |
|
This is a low frequency event, but a real pain in the butt.
At least one of my hg repositories was corrupted after purchasing a new
macbook and using Apple's automatic copy-your-old-system-to-your-new-one.
Specifically, about 6 files beginning with ._ are missing. These are mostly
named ._ds_store.i and ._bridgesort. [they probably shouldn't have been
there to begin with, but I was new to mercurial]. They are in a backup I
made using 'cp'. [All other dot files seem to be OK - so it's obviously
something in Apple's strange mind]
I tried restoring them by copying from the backup copy on the external disk,
but 'hg verify' is still upset.
Suggest considering an alternate naming convention which avoids leading dot's.
I've a call into Apple to try to find out what is going on from their point
of view.
|
|
| Date |
User |
Action |
Args |
| 2010-07-22 08:36:53 | mg | set | nosy:
+ mg |
| 2010-07-22 00:06:22 | kiilerix | set | nosy:
+ kiilerix |
| 2010-05-28 16:40:19 | man8 | set | nosy:
+ man8 |
| 2010-03-20 21:34:51 | tonfa | set | nosy:
tonfa, pmezard, smarks, djc, durin42, danchr, MikeHoward messages:
+ msg12110 |
| 2010-03-20 21:10:13 | tonfa | set | nosy:
tonfa, pmezard, smarks, djc, durin42, danchr, MikeHoward messages:
+ msg12109 |
| 2010-03-20 20:52:58 | tonfa | set | nosy:
+ tonfa |
| 2010-03-20 20:52:19 | durin42 | set | nosy:
+ durin42 |
| 2010-03-12 22:16:09 | danchr | set | nosy:
pmezard, smarks, djc, danchr, MikeHoward messages:
+ msg12036 |
| 2010-02-22 19:49:10 | djc | set | nosy:
+ djc messages:
+ msg11845 |
| 2009-08-23 10:17:30 | pmezard | set | nosy:
+ pmezard |
| 2009-08-11 07:19:22 | danchr | set | priority: wish -> bug nosy:
+ danchr messages:
+ msg10312 |
| 2009-08-11 00:51:11 | MikeHoward | set | nosy:
smarks, MikeHoward messages:
+ msg10311 |
| 2009-08-10 23:45:13 | smarks | set | status: unread -> chatting nosy:
+ smarks messages:
+ msg10309 |
| 2009-08-10 20:52:20 | MikeHoward | create | |
|