diff mercurial/wireproto.py @ 18382:f3b21beb9802

filtering: rename filters to their antonyms Now that changelog filtering is in place, it's become evident that naming the filters according to the set of revs _not_ included in the filtered changelog is confusing. This is especially evident in the collaborative branch cache scheme. This changes the names of the filters to reflect the revs that _are_ included: hidden -> visible unserved -> served mutable -> immutable impactable -> base repoview.filteredrevs is renamed to filterrevs, so that callers read a bit more sensibly, e.g.: filterrevs('visible') # filter revs according to what's visible
author Kevin Bullock <kbullock@ringworld.org>
date Sun, 13 Jan 2013 01:39:16 -0600
parents 7ac4449f0f39
children 6b618aa08b6e
line wrap: on
line diff
--- a/mercurial/wireproto.py	Tue Jan 15 20:55:47 2013 +0100
+++ b/mercurial/wireproto.py	Sun Jan 13 01:39:16 2013 -0600
@@ -345,7 +345,7 @@
         self.message = message
 
 def dispatch(repo, proto, command):
-    repo = repo.filtered("unserved")
+    repo = repo.filtered("served")
     func, spec = commands[command]
     args = proto.getargs(spec)
     return func(repo, proto, *args)
@@ -362,7 +362,7 @@
     return opts
 
 def batch(repo, proto, cmds, others):
-    repo = repo.filtered("unserved")
+    repo = repo.filtered("served")
     res = []
     for pair in cmds.split(';'):
         op, args = pair.split(' ', 1)