This is an archive of the discontinued Mercurial Phabricator instance.

obsutil: don't assume leftctx and rightctx repo as same
ClosedPublic

Authored by pulkit on Feb 15 2019, 9:48 AM.

Details

Summary

Backed out changeset 520514af2d93.

hgsubversion can pass leftctx and rightctx which are instances of two different
repositories. This was making tests fail on hgsubversion with 4.9.

The two different instances are:

(Pdb) p rightctx.repo()
<filteredrepo:served <hgsubversion.svnrepo.svnlocalrepo object at 0x7fe29d296d10>>
(Pdb) p leftctx.repo()
<filteredrepo:visible <hgsubversion.svnrepo.svnlocalrepo object at 0x7fe29d494590>>

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pulkit created this revision.Feb 15 2019, 9:48 AM
lothiraldan accepted this revision.Feb 15 2019, 11:18 AM
lothiraldan added a subscriber: lothiraldan.

LGTM, nice catch! Could you add a comment to clarify it?

pulkit updated this revision to Diff 14103.Feb 15 2019, 2:20 PM
This revision was automatically updated to reflect the committed changes.