Mercurial > hg
comparison hgext/convert/filemap.py @ 32291:bd872f64a8ba
cleanup: use set literals
We no longer support Python 2.6, so we can now use set literals.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 10 Feb 2017 16:56:29 -0800 |
parents | a0939666b836 |
children | 0fa781320203 |
comparison
equal
deleted
inserted
replaced
32290:2959c3e986e0 | 32291:bd872f64a8ba |
---|---|
308 if p is None: | 308 if p is None: |
309 # A root revision. Use SKIPREV to indicate that it doesn't | 309 # A root revision. Use SKIPREV to indicate that it doesn't |
310 # map to any revision in the restricted graph. Put SKIPREV | 310 # map to any revision in the restricted graph. Put SKIPREV |
311 # in the set of wanted ancestors to simplify code elsewhere | 311 # in the set of wanted ancestors to simplify code elsewhere |
312 self.parentmap[rev] = SKIPREV | 312 self.parentmap[rev] = SKIPREV |
313 self.wantedancestors[rev] = set((SKIPREV,)) | 313 self.wantedancestors[rev] = {SKIPREV} |
314 return | 314 return |
315 | 315 |
316 # Reuse the data from our parent. | 316 # Reuse the data from our parent. |
317 self.parentmap[rev] = self.parentmap[p] | 317 self.parentmap[rev] = self.parentmap[p] |
318 self.wantedancestors[rev] = self.wantedancestors[p] | 318 self.wantedancestors[rev] = self.wantedancestors[p] |