mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
test-extension: fix load path for Windows
The previous code was trying to load the extension from /tmp/hgtests.xxx/..., but the actual path for tests is C:\Users\...\Temp\hgtests.xxx\... I assume that the former is an MSYS path that maps somewhere under C:\MinGW.
This commit is contained in:
parent
71414924c3
commit
10ea5ea0de
@ -1608,7 +1608,7 @@ Show deprecation warning for the use of cmdutil.command
|
||||
(compatibility will be dropped after Mercurial-4.6, update your code.) * (glob)
|
||||
|
||||
Make sure a broken uisetup doesn't globally break hg:
|
||||
$ cat > baduisetup.py <<EOF
|
||||
$ cat > $TESTTMP/baduisetup.py <<EOF
|
||||
> from mercurial import (
|
||||
> bdiff,
|
||||
> extensions,
|
||||
@ -1622,7 +1622,7 @@ Make sure a broken uisetup doesn't globally break hg:
|
||||
> EOF
|
||||
$ cat >> $HGRCPATH <<EOF
|
||||
> [extensions]
|
||||
> baduisetup = $PWD/baduisetup.py
|
||||
> baduisetup = $TESTTMP/baduisetup.py
|
||||
> EOF
|
||||
|
||||
Even though the extension fails during uisetup, hg is still basically usable:
|
||||
|
Loading…
Reference in New Issue
Block a user