Patchwork largefiles: fix typo with s/__class/__class__/

login
register
mail settings
Submitter Martin von Zweigbergk
Date March 24, 2015, 12:08 a.m.
Message ID <6131ad087caa14407a81.1427155681@martinvonz.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/8223/
State Accepted
Commit 586d33f47dca6e7dcf4667ddd94b55d3901b8ce2
Headers show

Comments

Martin von Zweigbergk - March 24, 2015, 12:08 a.m.
# HG changeset patch
# User Martin von Zweigbergk <martinvonz@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.
Matt Mackall - March 24, 2015, 2:23 p.m.
On Mon, 2015-03-23 at 17:08 -0700, Martin von Zweigbergk wrote:
> # HG changeset patch
> # User Martin von Zweigbergk <martinvonz@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__/

Queued, thanks.

Patch

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