Submitter | Lucas Moscovicz |
---|---|
Date | Feb. 22, 2014, 7:19 p.m. |
Message ID | <01e0d36c542521cea456.1393096773@dev1037.prn2.facebook.com> |
Download | mbox | patch |
Permalink | /patch/3740/ |
State | Accepted |
Commit | 0e99a66eb7bcdb857c0079001df2039d79755782 |
Headers | show |
Comments
Patch
diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -2125,6 +2125,11 @@ l = baseset([r for r in self]) return l + baseset(x) + def __nonzero__(self): + for r in self: + return True + return False + def __len__(self): # Basic implementation to be changed in future patches. l = baseset([r for r in self])