# HG changeset patch # User Sietse Brouwer # Date 1590498482 -7200 # Node ID cc789a5baf4a4fbb266ccc19b6c223160617abad # Parent d87bc22b5a2e83b81ee672bc859786fba9217a52 Fix error with tags Tags are defined on a commit, such as the current commit `repo['.']`. They are not defined on the working directory, which `repo[None]` gives. diff -r d87bc22b5a2e -r cc789a5baf4a prompt.py --- a/prompt.py Sun Jul 19 11:12:21 2020 -0400 +++ b/prompt.py Tue May 26 15:08:02 2020 +0200 @@ -295,10 +295,12 @@ return _with_groups(g, flag) if flag else '' def _tags(m): + # Show tags of p1. + # As an alternative, we could show tags of p1 and p2. g = m.groups() sep = g[2][1:] if g[2] else ' ' - tags = repo[None].tags() + tags = repo['.'].tags() quiet = _get_filter('quiet', g) if quiet: