Skip to content

Commit

Permalink
Bug 1780880 - Use util.stringio instead of pycompat.stringio. r=sheehan
Browse files Browse the repository at this point in the history
pycompat.stringio was removed in Mercurial 6.2. util.stringio exists
for backward compatibility as it was the preferred symbol.

Differential Revision: https://phabricator.services.mozilla.com/D152572

--HG--
extra : moz-landing-system : lando
  • Loading branch information
jfx2006 committed Jul 25, 2022
1 parent f7343d9 commit 0167be7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hgext/mozext/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ def apply_change(node, reverse, push_patch=True, name=None):

opts = mdiff.defaultopts
opts.git = True
rpatch = pycompat.stringio()
rpatch = util.stringio()
orig, mod = (node, p1) if reverse else (p1, node)
for chunk in patch.diff(repo, node1=orig, node2=mod, opts=opts):
rpatch.write(chunk)
Expand Down

0 comments on commit 0167be7

Please sign in to comment.