[PATCH 1 of 2 STABLE-V2] repoview: add missing newline character in debug prints

Laurent Charignon lcharignon at fb.com
Wed Jan 20 15:49:39 CST 2016


# HG changeset patch
# User Laurent Charignon <lcharignon at fb.com>
# Date 1453326059 28800
#      Wed Jan 20 13:40:59 2016 -0800
# Branch stable
# Node ID c04a5869099c46cd8480c65668ee7470f9cdf98b
# Parent  3203dfe341f962e33256d6475fc3585563db78ad
repoview: add missing newline character in debug prints

diff --git a/mercurial/repoview.py b/mercurial/repoview.py
--- a/mercurial/repoview.py
+++ b/mercurial/repoview.py
@@ -126,9 +126,9 @@
         fh = repo.vfs.open(cachefile, 'w+b', atomictemp=True)
         _writehiddencache(fh, newhash, hidden)
     except (IOError, OSError):
-        repo.ui.debug('error writing hidden changesets cache')
+        repo.ui.debug('error writing hidden changesets cache\n')
     except error.LockHeld:
-        repo.ui.debug('cannot obtain lock to write hidden changesets cache')
+        repo.ui.debug('cannot obtain lock to write hidden changesets cache\n')
     finally:
         if fh:
             fh.close()


More information about the Mercurial-devel mailing list