Merged in sietsebb/hg-prompt (pull request #13)
Also hide ^ marker when on a non-tip head
author |
Steve Losh <steve@stevelosh.com> |
date |
Thu, 29 Sep 2016 23:32:36 +0000 |
parents |
e90cf5cad060
(current diff)
34c0e34e7fe7
(diff)
|
children |
54262d42ff7c
|
branches/tags |
(none) |
files |
prompt.py |
Changes
--- a/prompt.py Wed Apr 20 10:15:36 2016 -0500
+++ b/prompt.py Thu Sep 29 23:32:36 2016 +0000
@@ -370,7 +370,7 @@
tip = head
break
- return _with_groups(m.groups(), '^') if current_rev != repo[tip] else ''
+ return _with_groups(m.groups(), '^') if current_rev.children() else ''
if opts.get("angle_brackets"):