repoview: add missing newline character in debug prints stable
authorLaurent Charignon <lcharignon@fb.com>
Wed, 20 Jan 2016 13:40:59 -0800
branchstable
changeset 29865 9a09a9cfa503765fda9252493e6386f3a85a36a4
parent 29864 5f2a308bac94b72453e0147d59edae23509f9dd4
child 29866 97e0dc6d248c2e0dbf14747a7b88ee2a3cefee67
push id175
push usergszorc@mozilla.com
push dateWed, 10 Feb 2016 01:24:28 +0000
repoview: add missing newline character in debug prints
mercurial/repoview.py
--- a/mercurial/repoview.py
+++ b/mercurial/repoview.py
@@ -121,19 +121,19 @@ def trywritehiddencache(repo, hideable, 
     wlock = fh = None
     try:
         wlock = repo.wlock(wait=False)
         # write cache to file
         newhash = cachehash(repo, hideable)
         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()
         if wlock:
             wlock.release()
 
 def tryreadcache(repo, hideable):
     """read a cache if the cache exists and is valid, otherwise returns None."""