##// END OF EJS Templates
inotify: add client code for long pathname handling
Benoit Boissinot -
r7024:ee308d44 default
parent child Browse files
Show More
@@ -14,7 +14,14 import os, select, socket, stat, struct,
14 14 def query(ui, repo, names, match, list_ignored, list_clean, list_unknown=True):
15 15 sock = socket.socket(socket.AF_UNIX)
16 16 sockpath = repo.join('inotify.sock')
17 try:
17 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 26 def genquery():
20 27 for n in names or []:
@@ -1,9 +1,7
1 1 % fail
2 failed to contact inotify server: AF_UNIX path too long
2 failed to contact inotify server: No such file or directory
3 3 deactivating inotify
4 4 abort: could not start server: File exists
5 5 % inserve
6 6 % status
7 failed to contact inotify server: AF_UNIX path too long
8 deactivating inotify
9 7 ? hg.pid
General Comments 0
You need to be logged in to leave comments. Login now