[PATCH] largefiles: fix typo with s/__class/__class__/

Martin von Zweigbergk martinvonz at google.com
Tue Mar 24 00:08:01 UTC 2015


# HG changeset patch
# User Martin von Zweigbergk <martinvonz at google.com>
# Date 1427155645 25200
#      Mon Mar 23 17:07:25 2015 -0700
# Node ID 6131ad087caa14407a81e5e5bd688bda9e58752f
# Parent  811a1842cfe5f632145912d9bf2dc859e6ee3eeb
largefiles: fix typo with s/__class/__class__/

Commit f78252429e0a (largefiles: don't create chain of __contains__
calls, 2015-03-11) introduced a typo with __class instead of
__class__. Let's fix it.

There are (obviously) no tests covering this code path, and I could
figure out a way to trigger it, so it remains untested.

Spotted by Drew Gottlieb.

diff -r 811a1842cfe5 -r 6131ad087caa hgext/largefiles/reposetup.py
--- a/hgext/largefiles/reposetup.py	Mon Mar 23 14:47:35 2015 -0400
+++ b/hgext/largefiles/reposetup.py	Mon Mar 23 17:07:25 2015 -0700
@@ -44,7 +44,7 @@
                         return [lfutil.splitstandin(f) or f for f in filenames]
                     def manifest(self):
                         man1 = super(lfilesctx, self).manifest()
-                        class lfilesmanifest(man1.__class):
+                        class lfilesmanifest(man1.__class__):
                             def __contains__(self, filename):
                                 orig = super(lfilesmanifest, self).__contains__
                                 return (orig(filename) or


More information about the Mercurial-devel mailing list