You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing None to second argument, You'll get compare with current state of repository
Marcin Kuzminski / marcinkuzminski
written 2 months ago
As well as this function was turned on for showing changed files for merges, i'm still not happy with the speed of add/changed/modified functions it seems they the slowest point when browsing changesets
Marcin Kuzminski / marcinkuzminski
written 27 days ago
As the speed was vastly improved with several recent patches, one more problem of memory usage remains, using manifest() with repositories that uses a lot of files, causes huge memory usage. The problem with current implementation is that for each CS called within repository instance we call manifest() each time.
Example: if first commit of repository contains 20K files, iteration over 1000 first changesets generates (20 000+cs delta) * 1000 objects. There is a manifest delta method that shows only changes between revisions, but we have to find some smarter way of implementing this.
In terms of current a/c/m attributes and usage of files() after some thinking i believe that usage of
localrepo.status() would be much better.
For example
hg st --change REV gives You modified, added, removed, deleted files for that REV, thus making merge changes same as in diff.
And it's much faster than current try except solution.
Reference: https://bitbucket.org/marcinkuzminski/vcs/issues/35/
The text was updated successfully, but these errors were encountered: