Comments
Patch
@@ -39,10 +39,16 @@
"""A changecontext object makes access to data related to a particular
changeset convenient. It represents a read-only context already presnt in
the repo."""
def __init__(self, repo, changeid=''):
"""changeid is a revision number, node, or tag"""
+
+ # since context.__new__ already took care of copying the object, we
+ # don't need to do anything in __init__, so we just exit here
+ if isinstance(changeid, context):
+ return
+
if changeid == '':
changeid = '.'
self._repo = repo
if isinstance(changeid, int):