# HG changeset patch # User Stanislau Hlebik <st...@fb.com> # Date 1485515845 28800 # Fri Jan 27 03:17:25 2017 -0800 # Node ID 8b66569e49ce6382670497aa4e96c5e81c224439 # Parent 18f8e0f8ba54270bf158734c781327581cf43634 selectivepull: add comments
Explain why selectivepull is useful diff --git a/remotenames.py b/remotenames.py --- a/remotenames.py +++ b/remotenames.py @@ -101,6 +101,16 @@ def expull(orig, repo, remote, *args, **kwargs): remotebookmarks = remote.listkeys('bookmarks') if _isselectivepull(repo.ui): + # if selectivepull is enabled then we don't save all of the remote + # bookmarks in remotenames file. Instead we save only bookmarks that + # are "interesting" to a user. Moreover, "hg pull" without parameters + # pulls only "interesting" bookmarks. There is a config option to + # set default "interesting" bookmarks + # (see _getselectivepulldefaultbookmarks). + # Then bookmark is considered "interesting" if user did + # "hg update REMOTE_BOOK_NAME" or "hg pull -B REMOTE_BOOK_NAME". + # Selectivepull is helpful when server has too many remote bookmarks + # because it may slow down clients. path = activepath(repo.ui, remote) bookmarks = {} for bookmark in readbookmarknames(repo, path): _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel