mercurial/subrepo.py
changeset 25658 e93036747902
parent 25601 3ec8351fa6ed
child 25660 328739ea70c3
equal deleted inserted replaced
25657:dcc56e10c23b 25658:e93036747902
   538         relpath = subrelpath(self)
   538         relpath = subrelpath(self)
   539         self.ui.progress(_('archiving (%s)') % relpath, 0,
   539         self.ui.progress(_('archiving (%s)') % relpath, 0,
   540                          unit=_('files'), total=total)
   540                          unit=_('files'), total=total)
   541         for i, name in enumerate(files):
   541         for i, name in enumerate(files):
   542             flags = self.fileflags(name)
   542             flags = self.fileflags(name)
   543             mode = 'x' in flags and 0755 or 0644
   543             mode = 'x' in flags and 0o755 or 0o644
   544             symlink = 'l' in flags
   544             symlink = 'l' in flags
   545             archiver.addfile(prefix + self._path + '/' + name,
   545             archiver.addfile(prefix + self._path + '/' + name,
   546                              mode, symlink, self.filedata(name))
   546                              mode, symlink, self.filedata(name))
   547             self.ui.progress(_('archiving (%s)') % relpath, i + 1,
   547             self.ui.progress(_('archiving (%s)') % relpath, i + 1,
   548                              unit=_('files'), total=total)
   548                              unit=_('files'), total=total)