From patchwork Thu Sep 5 20:06:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [01, of, 48, RFC] workingctx: remove unneeded __repr__ since it is now inherited From: Sean Farley X-Patchwork-Id: 2339 Message-Id: <7174735f6e2e1c63b781.1378411615@laptop.local> To: mercurial-devel@selenic.com Date: Thu, 05 Sep 2013 15:06:55 -0500 # HG changeset patch # User Sean Farley # Date 1376505164 18000 # Wed Aug 14 13:32:44 2013 -0500 # Node ID 7174735f6e2e1c63b7816aa63575825cb8d71cd2 # Parent 5e1083447f7f4193b68123cbca3f8c54a8501d6b workingctx: remove unneeded __repr__ since it is now inherited diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -863,13 +863,10 @@ self._extra['branch'] = 'default' def __str__(self): return str(self._parents[0]) + "+" - def __repr__(self): - return "" % str(self) - def __nonzero__(self): return True def __contains__(self, key): return self._repo.dirstate[key] not in "?r"