Mercurial > public > mercurial-scm > hg
comparison mercurial/cmdutil.py @ 33731:2cb442bc1a76
obsmarker: rename precnode into prednode
Rename prednode (predecessors node) into precnode (precursors node) in markers
class. Use util.nouideprecwarn because markers doesn't have easy access to an
ui object.
The renaming is done according to
https://www.mercurial-scm.org/wiki/CEDVocabulary.
Differential Revision: https://phab.mercurial-scm.org/D243
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 02 Aug 2017 19:20:59 +0200 |
parents | 52c5ff856b49 |
children | 86aca74a063b |
comparison
equal
deleted
inserted
replaced
33730:52c5ff856b49 | 33731:2cb442bc1a76 |
---|---|
1911 """utility function to display obsolescence marker in a readable way | 1911 """utility function to display obsolescence marker in a readable way |
1912 | 1912 |
1913 To be used by debug function.""" | 1913 To be used by debug function.""" |
1914 if index is not None: | 1914 if index is not None: |
1915 fm.write('index', '%i ', index) | 1915 fm.write('index', '%i ', index) |
1916 fm.write('precnode', '%s ', hex(marker.precnode())) | 1916 fm.write('precnode', '%s ', hex(marker.prednode())) |
1917 succs = marker.succnodes() | 1917 succs = marker.succnodes() |
1918 fm.condwrite(succs, 'succnodes', '%s ', | 1918 fm.condwrite(succs, 'succnodes', '%s ', |
1919 fm.formatlist(map(hex, succs), name='node')) | 1919 fm.formatlist(map(hex, succs), name='node')) |
1920 fm.write('flag', '%X ', marker.flags()) | 1920 fm.write('flag', '%X ', marker.flags()) |
1921 parents = marker.parentnodes() | 1921 parents = marker.parentnodes() |