comparison hgext/graphlog.py @ 4509:9d1380e5c8c5

graphlog: Print . instead of @ for working directory parents "." is accepted as an alias for the first working directory parent by -r/--rev
author Thomas Arendsen Hein <thomas@intevation.de>
date Wed, 06 Jun 2007 18:28:48 +0200
parents 345ed833854d
children 96d8a56d4ef9
comparison
equal deleted inserted replaced
4508:0026ccc2bf23 4509:9d1380e5c8c5
145 """show revision history alongside an ASCII revision graph 145 """show revision history alongside an ASCII revision graph
146 146
147 Print a revision history alongside a revision graph drawn with 147 Print a revision history alongside a revision graph drawn with
148 ASCII characters. 148 ASCII characters.
149 149
150 Nodes printed as an @ character are parents of the working 150 Nodes printed as a . character are parents of the working
151 directory. 151 directory.
152 """ 152 """
153 153
154 limit = get_limit(opts["limit"]) 154 limit = get_limit(opts["limit"])
155 (start_rev, stop_rev) = get_revs(repo, opts["rev"]) 155 (start_rev, stop_rev) = get_revs(repo, opts["rev"])
197 # | o | | into | o / / # <--- fixed nodeline tail 197 # | o | | into | o / / # <--- fixed nodeline tail
198 # | |/ / | |/ / 198 # | |/ / | |/ /
199 # o | | o | | 199 # o | | o | |
200 fix_nodeline_tail = len(log_strings) <= 2 and not add_padding_line 200 fix_nodeline_tail = len(log_strings) <= 2 and not add_padding_line
201 201
202 # nodeline is the line containing the node character (@ or o). 202 # nodeline is the line containing the node character (. or o).
203 nodeline = ["|", " "] * node_index 203 nodeline = ["|", " "] * node_index
204 if node in repo_parents: 204 if node in repo_parents:
205 node_ch = "@" 205 node_ch = "."
206 else: 206 else:
207 node_ch = "o" 207 node_ch = "o"
208 nodeline.extend([node_ch, " "]) 208 nodeline.extend([node_ch, " "])
209 209
210 nodeline.extend( 210 nodeline.extend(