Show More
@@ -57,7 +57,8 b' confused with a file with the exec bit s' | |||||
57 | > extensions.wrapfunction(context.workingctx, '_checklookup', overridechecklookup) |
|
57 | > extensions.wrapfunction(context.workingctx, '_checklookup', overridechecklookup) | |
58 | > def overridechecklookup(orig, self, files): |
|
58 | > def overridechecklookup(orig, self, files): | |
59 | > # make an update that changes the dirstate from underneath |
|
59 | > # make an update that changes the dirstate from underneath | |
60 | > self._repo.ui.system(self._repo.ui.config('dirstaterace', 'command'), cwd=self._repo.root) |
|
60 | > self._repo.ui.system(r"sh '$TESTTMP/dirstaterace.sh'", | |
|
61 | > cwd=self._repo.root) | |||
61 | > return orig(self, files) |
|
62 | > return orig(self, files) | |
62 | > EOF |
|
63 | > EOF | |
63 |
|
64 | |||
@@ -73,8 +74,11 b' XXX Note that this returns M for files t' | |||||
73 | definitely a bug, but the fix for that is hard and the next status run is fine |
|
74 | definitely a bug, but the fix for that is hard and the next status run is fine | |
74 | anyway. |
|
75 | anyway. | |
75 |
|
76 | |||
76 | $ hg status --config extensions.dirstaterace=$TESTTMP/dirstaterace.py \ |
|
77 | $ cat > $TESTTMP/dirstaterace.sh <<EOF | |
77 |
> |
|
78 | > rm b && rm -r dir1 && rm d && mkdir d && rm e && mkdir e | |
|
79 | > EOF | |||
|
80 | ||||
|
81 | $ hg status --config extensions.dirstaterace=$TESTTMP/dirstaterace.py | |||
78 | M d |
|
82 | M d | |
79 | M e |
|
83 | M e | |
80 | ! b |
|
84 | ! b |
General Comments 0
You need to be logged in to leave comments.
Login now