[PATCH 1 of 2 remotefilelog-ext getfile-batching] fileserverclient: correctly use exception constructor

Augie Fackler raf at durin42.com
Tue Aug 18 20:07:25 UTC 2015


# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1439926521 14400
#      Tue Aug 18 15:35:21 2015 -0400
# Node ID 1183fcaf20272ca5dbcc0c308e9e11b1c7c97093
# Parent  4607c177e80b376f63ca17bf8dda80339fc2a4c5
fileserverclient: correctly use exception constructor

We were passing one argument instead of 3.

diff --git a/remotefilelog/fileserverclient.py b/remotefilelog/fileserverclient.py
--- a/remotefilelog/fileserverclient.py
+++ b/remotefilelog/fileserverclient.py
@@ -45,7 +45,7 @@ def peersetup(ui, peer):
             yield {'file': file, 'node': node}, f
             code, data = f.value.split('\0', 1)
             if int(code):
-                raise error.LookupError(data)
+                raise error.LookupError(file, node, data)
             yield data
     peer.__class__ = remotefilepeer
 


More information about the Mercurial-devel mailing list