equal
deleted
inserted
replaced
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( |