graphlog: Print . instead of @ for working directory parents
authorThomas Arendsen Hein <thomas@intevation.de>
Wed, 06 Jun 2007 18:28:48 +0200
changeset 4509 9d1380e5c8c5
parent 4508 0026ccc2bf23
child 4510 e0bc2c575044
graphlog: Print . instead of @ for working directory parents "." is accepted as an alias for the first working directory parent by -r/--rev
hgext/graphlog.py
--- a/hgext/graphlog.py	Tue Jun 05 19:55:27 2007 -0300
+++ b/hgext/graphlog.py	Wed Jun 06 18:28:48 2007 +0200
@@ -147,7 +147,7 @@
     Print a revision history alongside a revision graph drawn with
     ASCII characters.
 
-    Nodes printed as an @ character are parents of the working
+    Nodes printed as a . character are parents of the working
     directory.
     """
 
@@ -199,10 +199,10 @@
         #     o | |            o | |
         fix_nodeline_tail = len(log_strings) <= 2 and not add_padding_line
 
-        # nodeline is the line containing the node character (@ or o).
+        # nodeline is the line containing the node character (. or o).
         nodeline = ["|", " "] * node_index
         if node in repo_parents:
-            node_ch = "@"
+            node_ch = "."
         else:
             node_ch = "o"
         nodeline.extend([node_ch, " "])