Show More
@@ -14,7 +14,14 b' import os, select, socket, stat, struct,' | |||||
14 | def query(ui, repo, names, match, ignored, clean, unknown=True): |
|
14 | def query(ui, repo, names, match, ignored, clean, unknown=True): | |
15 | sock = socket.socket(socket.AF_UNIX) |
|
15 | sock = socket.socket(socket.AF_UNIX) | |
16 | sockpath = repo.join('inotify.sock') |
|
16 | sockpath = repo.join('inotify.sock') | |
|
17 | try: | |||
17 | sock.connect(sockpath) |
|
18 | sock.connect(sockpath) | |
|
19 | except socket.error, err: | |||
|
20 | if err[0] == "AF_UNIX path too long": | |||
|
21 | sockpath = os.readlink(sockpath) | |||
|
22 | sock.connect(sockpath) | |||
|
23 | else: | |||
|
24 | raise | |||
18 |
|
25 | |||
19 | def genquery(): |
|
26 | def genquery(): | |
20 | for n in names or []: |
|
27 | for n in names or []: |
@@ -1,9 +1,7 b'' | |||||
1 | % fail |
|
1 | % fail | |
2 |
failed to contact inotify server: |
|
2 | failed to contact inotify server: No such file or directory | |
3 | deactivating inotify |
|
3 | deactivating inotify | |
4 | abort: could not start server: File exists |
|
4 | abort: could not start server: File exists | |
5 | % inserve |
|
5 | % inserve | |
6 | % status |
|
6 | % status | |
7 | failed to contact inotify server: AF_UNIX path too long |
|
|||
8 | deactivating inotify |
|
|||
9 | ? hg.pid |
|
7 | ? hg.pid |
General Comments 0
You need to be logged in to leave comments.
Login now