This is an archive of the discontinued Mercurial Phabricator instance.

basepack: also log total size of packs on init
ClosedPublic

Authored by phillco on Nov 1 2017, 2:45 PM.
Tags
None
Subscribers

Details

Reviewers
durham
Group Reviewers
Restricted Project
Commits
rFBHGXeeba4c4aac0e: basepack: also log total size of packs on init
Summary

This data might be useful too.

Move to _getavailablepackfiles so refresh() picks it up too.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

phillco created this revision.Nov 1 2017, 2:45 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptNov 1 2017, 2:45 PM
durham requested changes to this revision.Nov 1 2017, 3:37 PM
durham added a subscriber: durham.
durham added inline comments.
remotefilelog/basepack.py
81

The output of this is used in other places that I think need updating.

140–141

Like here

This revision now requires changes to proceed.Nov 1 2017, 3:37 PM
singhsrb added inline comments.
remotefilelog/basepack.py
81

Can we just log inside the _getavailablepackfiles?

phillco updated this revision to Diff 3193.Nov 1 2017, 3:41 PM
phillco added inline comments.Nov 1 2017, 3:42 PM
remotefilelog/basepack.py
81

Would that be preferable?

durham added inline comments.Nov 1 2017, 3:43 PM
remotefilelog/basepack.py
81

Hmm, actually yea that might be nicer. Since then we would also catch refreshes.

phillco added inline comments.Nov 1 2017, 3:44 PM
remotefilelog/basepack.py
81

willdo

phillco edited the summary of this revision. (Show Details)Nov 1 2017, 3:52 PM
phillco updated this revision to Diff 3194.
This revision is now accepted and ready to land.Nov 1 2017, 3:54 PM
phillco closed this revision.Nov 2 2017, 1:08 PM

Landed, but will need to rethink