Mercurial > evolve
comparison hgext/evolve.py @ 268:2da5af3dadeb
amend: remove useless repo.changelog alias
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Tue, 12 Jun 2012 15:33:23 +0200 |
parents | 24943df310d4 |
children | 6c6bb7a23bb5 |
comparison
equal
deleted
inserted
replaced
267:34020ca0c451 | 268:2da5af3dadeb |
---|---|
423 if len(repo) == revcount: | 423 if len(repo) == revcount: |
424 # No revision created | 424 # No revision created |
425 tempid = None | 425 tempid = None |
426 | 426 |
427 # find all changesets to be considered updates | 427 # find all changesets to be considered updates |
428 cl = repo.changelog | |
429 head = repo['.'] | 428 head = repo['.'] |
430 updatenodes = set(cl.nodesbetween(roots=[old.node()], | 429 updatenodes = set(repo.changelog.nodesbetween( |
431 heads=[head.node()])[0]) | 430 roots=[old.node()], heads=[head.node()])[0]) |
432 updatenodes.remove(old.node()) | 431 updatenodes.remove(old.node()) |
433 okoptions = ['message', 'logfile', 'edit', 'user'] | 432 okoptions = ['message', 'logfile', 'edit', 'user'] |
434 if not updatenodes: | 433 if not updatenodes: |
435 for o in okoptions: | 434 for o in okoptions: |
436 if opts.get(o): | 435 if opts.get(o): |