largefiles: quiet (and document) undefined name errors (issue3886)
authorBryan O'Sullivan <bryano@fb.com>
Fri, 12 Apr 2013 17:33:24 -0700
changeset 18922 d2c4d37f7db5
parent 18921 ac31f586eff7
child 18923 d2647edb1782
largefiles: quiet (and document) undefined name errors (issue3886) These names were found using Cython; I was completely puzzled until I searched the rest of the tree. It's icky to mess with another module's namespace, but ickier yet to do so without a comment :-)
hgext/largefiles/proto.py
--- a/hgext/largefiles/proto.py	Fri Apr 12 17:27:09 2013 -0700
+++ b/hgext/largefiles/proto.py	Fri Apr 12 17:33:24 2013 -0700
@@ -16,6 +16,11 @@
                            '\n\nPlease enable it in your Mercurial config '
                            'file.\n')
 
+# these will all be replaced by largefiles.uisetup
+capabilitiesorig = None
+ssholdcallstream = None
+httpoldcallstream = None
+
 def putlfile(repo, proto, sha):
     '''Put a largefile into a repository's local store and into the
     user cache.'''