Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 17123:8e030168b09e
debugobsolete: remove spurious ctx from variable name
'contexts' are objects like the ones described in context.py, not
anything that describes a situation.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 11 Jul 2012 18:35:14 -0500 |
parents | 178a2e85d426 |
children | 8fa8717b47b6 |
comparison
equal
deleted
inserted
replaced
17122:5d6cbfa975bf | 17123:8e030168b09e |
---|---|
2063 try: | 2063 try: |
2064 repo.obsstore.create(bin(precursor), succs, 0, metadata) | 2064 repo.obsstore.create(bin(precursor), succs, 0, metadata) |
2065 finally: | 2065 finally: |
2066 l.release() | 2066 l.release() |
2067 else: | 2067 else: |
2068 for mctx in obsolete.allmarkers(repo): | 2068 for m in obsolete.allmarkers(repo): |
2069 ui.write(hex(mctx.precnode())) | 2069 ui.write(hex(m.precnode())) |
2070 for repl in mctx.succnodes(): | 2070 for repl in m.succnodes(): |
2071 ui.write(' ') | 2071 ui.write(' ') |
2072 ui.write(hex(repl)) | 2072 ui.write(hex(repl)) |
2073 ui.write(' %X ' % mctx._data[2]) | 2073 ui.write(' %X ' % m._data[2]) |
2074 ui.write(mctx.metadata()) | 2074 ui.write(m.metadata()) |
2075 ui.write('\n') | 2075 ui.write('\n') |
2076 | 2076 |
2077 @command('debugpushkey', [], _('REPO NAMESPACE [KEY OLD NEW]')) | 2077 @command('debugpushkey', [], _('REPO NAMESPACE [KEY OLD NEW]')) |
2078 def debugpushkey(ui, repopath, namespace, *keyinfo, **opts): | 2078 def debugpushkey(ui, repopath, namespace, *keyinfo, **opts): |
2079 '''access the pushkey key/value protocol | 2079 '''access the pushkey key/value protocol |