mercurial/cmdutil.py
changeset 45794 f90a5c211251
parent 45793 96fcc37a9c80
child 45819 e9555305c5c6
--- a/mercurial/cmdutil.py	Thu Oct 22 23:10:06 2020 -0700
+++ b/mercurial/cmdutil.py	Tue Oct 27 15:33:15 2020 -0700
@@ -1222,8 +1222,16 @@
     if not spec:
         spec = default_spec
     if not spec:
-        # TODO: Pick a default we can agree on. This isn't used yet.
-        raise error.ProgrammingError(b"no default one-line summary defined yet")
+        spec = (
+            b'{separate(" ", '
+            b'label("log.changeset", "{rev}:{node|short}")'
+            b', '
+            b'label("log.tag", tags)'
+            b', '
+            b'label("log.bookmark", bookmarks)'
+            b')} '
+            b'"{label("log.desc", desc|firstline)}"'
+        )
     text = rendertemplate(ctx, spec)
     return text.split(b'\n')[0]