Mercurial > evolve
comparison hgext/obsolete.py @ 132:64d16f07d67f
obsolete: alter newerversion return
prepare ability to split and return kill information.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 24 Jan 2012 09:53:34 +0100 |
parents | 3124889cad55 |
children | 1a08daef8a53 |
comparison
equal
deleted
inserted
replaced
131:3124889cad55 | 132:64d16f07d67f |
---|---|
255 while toproceed: | 255 while toproceed: |
256 current = toproceed.pop() | 256 current = toproceed.pop() |
257 if current in repo._obsobjrels: | 257 if current in repo._obsobjrels: |
258 toproceed.update(repo._obsobjrels[current]) | 258 toproceed.update(repo._obsobjrels[current]) |
259 elif current is not None: # None is kill | 259 elif current is not None: # None is kill |
260 newer.add(current) | 260 newer.add((current,)) |
261 else: | |
262 newer.add(()) | |
261 return sorted(newer) | 263 return sorted(newer) |
262 | 264 |
263 | 265 |
264 ### repo subclassing | 266 ### repo subclassing |
265 ############################# | 267 ############################# |