diff -r 57f1dbc99631 -r 8678b1eafbcf mercurial/changelog.py --- a/mercurial/changelog.py Mon Apr 20 15:27:55 2015 +0200 +++ b/mercurial/changelog.py Mon Apr 20 17:16:22 2015 +0200 @@ -267,6 +267,8 @@ self.checkinlinesize(tr) def readpending(self, file): + if not self.opener.exists(file): + return # no pending data for changelog r = revlog.revlog(self.opener, file) self.index = r.index self.nodemap = r.nodemap