Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/subrepo.py @ 37578:56df2ca5c032
py3: prevent transformer from adding b'' by adding r'' prefix
These are cases where we need to use str, therefore we add r'' prefix.
# skip-blame because just r'' prefixes
Differential Revision: https://phab.mercurial-scm.org/D3276
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Thu, 12 Apr 2018 14:28:08 +0530 |
parents | 14cd5290c4e6 |
children | e7bf5a73e4e1 |
comparison
equal
deleted
inserted
replaced
37577:e7eea8582afa | 37578:56df2ca5c032 |
---|---|
1635 | 1635 |
1636 # Parse git's native archive command. | 1636 # Parse git's native archive command. |
1637 # This should be much faster than manually traversing the trees | 1637 # This should be much faster than manually traversing the trees |
1638 # and objects with many subprocess calls. | 1638 # and objects with many subprocess calls. |
1639 tarstream = self._gitcommand(['archive', revision], stream=True) | 1639 tarstream = self._gitcommand(['archive', revision], stream=True) |
1640 tar = tarfile.open(fileobj=tarstream, mode='r|') | 1640 tar = tarfile.open(fileobj=tarstream, mode=r'r|') |
1641 relpath = subrelpath(self) | 1641 relpath = subrelpath(self) |
1642 self.ui.progress(_('archiving (%s)') % relpath, 0, unit=_('files')) | 1642 self.ui.progress(_('archiving (%s)') % relpath, 0, unit=_('files')) |
1643 for i, info in enumerate(tar): | 1643 for i, info in enumerate(tar): |
1644 if info.isdir(): | 1644 if info.isdir(): |
1645 continue | 1645 continue |