Show More
@@ -348,3 +348,6 b' def hidewindow():' | |||||
348 | child process under Windows, unneeded on other systems. |
|
348 | child process under Windows, unneeded on other systems. | |
349 | """ |
|
349 | """ | |
350 | pass |
|
350 | pass | |
|
351 | ||||
|
352 | def executablepath(): | |||
|
353 | return None # available on Windows only |
@@ -20,9 +20,54 b' import os, time, calendar, textwrap, uni' | |||||
20 | import imp, socket, urllib |
|
20 | import imp, socket, urllib | |
21 |
|
21 | |||
22 | if os.name == 'nt': |
|
22 | if os.name == 'nt': | |
23 |
|
|
23 | import windows as platform | |
24 | else: |
|
24 | else: | |
25 | from posix import * |
|
25 | import posix as platform | |
|
26 | ||||
|
27 | checkexec = platform.checkexec | |||
|
28 | checklink = platform.checklink | |||
|
29 | executablepath = platform.executablepath | |||
|
30 | expandglobs = platform.expandglobs | |||
|
31 | explainexit = platform.explainexit | |||
|
32 | findexe = platform.findexe | |||
|
33 | gethgcmd = platform.gethgcmd | |||
|
34 | getuser = platform.getuser | |||
|
35 | groupmembers = platform.groupmembers | |||
|
36 | groupname = platform.groupname | |||
|
37 | hidewindow = platform.hidewindow | |||
|
38 | isexec = platform.isexec | |||
|
39 | isowner = platform.isowner | |||
|
40 | localpath = platform.localpath | |||
|
41 | lookupreg = platform.lookupreg | |||
|
42 | makedir = platform.makedir | |||
|
43 | nlinks = platform.nlinks | |||
|
44 | normpath = platform.normpath | |||
|
45 | nulldev = platform.nulldev | |||
|
46 | openhardlinks = platform.openhardlinks | |||
|
47 | oslink = platform.oslink | |||
|
48 | parsepatchoutput = platform.parsepatchoutput | |||
|
49 | pconvert = platform.pconvert | |||
|
50 | popen = platform.popen | |||
|
51 | posixfile = platform.posixfile | |||
|
52 | quotecommand = platform.quotecommand | |||
|
53 | realpath = platform.realpath | |||
|
54 | rename = platform.rename | |||
|
55 | samedevice = platform.samedevice | |||
|
56 | samefile = platform.samefile | |||
|
57 | samestat = platform.samestat | |||
|
58 | setbinary = platform.setbinary | |||
|
59 | setflags = platform.setflags | |||
|
60 | setsignalhandler = platform.setsignalhandler | |||
|
61 | shellquote = platform.shellquote | |||
|
62 | spawndetached = platform.spawndetached | |||
|
63 | sshargs = platform.sshargs | |||
|
64 | statfiles = platform.statfiles | |||
|
65 | termwidth = platform.termwidth | |||
|
66 | testpid = platform.testpid | |||
|
67 | umask = platform.umask | |||
|
68 | unlink = platform.unlink | |||
|
69 | unlinkpath = platform.unlinkpath | |||
|
70 | username = platform.username | |||
26 |
|
71 | |||
27 | # Python compatibility |
|
72 | # Python compatibility | |
28 |
|
73 | |||
@@ -482,6 +527,8 b' def checkwinfilename(path):' | |||||
482 |
|
527 | |||
483 | if os.name == 'nt': |
|
528 | if os.name == 'nt': | |
484 | checkosfilename = checkwinfilename |
|
529 | checkosfilename = checkwinfilename | |
|
530 | else: | |||
|
531 | checkosfilename = platform.checkosfilename | |||
485 |
|
532 | |||
486 | def makelock(info, pathname): |
|
533 | def makelock(info, pathname): | |
487 | try: |
|
534 | try: |
@@ -281,6 +281,9 b' def groupmembers(name):' | |||||
281 | # Don't support groups on Windows for now |
|
281 | # Don't support groups on Windows for now | |
282 | raise KeyError() |
|
282 | raise KeyError() | |
283 |
|
283 | |||
|
284 | def isexec(f): | |||
|
285 | return False | |||
|
286 | ||||
284 | from win32 import * |
|
287 | from win32 import * | |
285 |
|
288 | |||
286 | expandglobs = True |
|
289 | expandglobs = True |
@@ -7,8 +7,6 b'' | |||||
7 | mercurial/commands.py:*: 'mpatch' imported but unused (glob) |
|
7 | mercurial/commands.py:*: 'mpatch' imported but unused (glob) | |
8 | mercurial/commands.py:*: 'osutil' imported but unused (glob) |
|
8 | mercurial/commands.py:*: 'osutil' imported but unused (glob) | |
9 | hgext/inotify/linux/__init__.py:*: 'from _inotify import *' used; unable to detect undefined names (glob) |
|
9 | hgext/inotify/linux/__init__.py:*: 'from _inotify import *' used; unable to detect undefined names (glob) | |
10 | mercurial/util.py:*: 'from posix import *' used; unable to detect undefined names (glob) |
|
|||
11 | mercurial/windows.py:*: 'from win32 import *' used; unable to detect undefined names (glob) |
|
10 | mercurial/windows.py:*: 'from win32 import *' used; unable to detect undefined names (glob) | |
12 | mercurial/util.py:*: 'from windows import *' used; unable to detect undefined names (glob) |
|
|||
13 |
|
11 | |||
14 |
|
12 |
General Comments 0
You need to be logged in to leave comments.
Login now