equal
deleted
inserted
replaced
302 mutable = [c.node() for c in foreground if c.mutable()] |
302 mutable = [c.node() for c in foreground if c.mutable()] |
303 succs.update(allsuccessors(repo.obsstore, mutable)) |
303 succs.update(allsuccessors(repo.obsstore, mutable)) |
304 known = (n for n in succs if n in nm) |
304 known = (n for n in succs if n in nm) |
305 foreground = set(repo.set('%ln::', known)) |
305 foreground = set(repo.set('%ln::', known)) |
306 return set(c.node() for c in foreground) |
306 return set(c.node() for c in foreground) |
|
307 |
|
308 # logic around storing and using effect flags |
|
309 EFFECTFLAGFIELD = "ef1" |
|
310 |
|
311 def geteffectflag(relation): |
|
312 """ From an obs-marker relation, compute what changed between the |
|
313 predecessor and the successor. |
|
314 """ |
|
315 effects = 0 |
|
316 |
|
317 source = relation[0] |
|
318 |
|
319 return effects |
307 |
320 |
308 def getobsoleted(repo, tr): |
321 def getobsoleted(repo, tr): |
309 """return the set of pre-existing revisions obsoleted by a transaction""" |
322 """return the set of pre-existing revisions obsoleted by a transaction""" |
310 torev = repo.unfiltered().changelog.nodemap.get |
323 torev = repo.unfiltered().changelog.nodemap.get |
311 phase = repo._phasecache.phase |
324 phase = repo._phasecache.phase |