Submitter | Augie Fackler |
---|---|
Date | March 12, 2017, 5:59 p.m. |
Message ID | <fb715419540638192073.1489341556@augie-macbookair2.roam.corp.google.com> |
Download | mbox | patch |
Permalink | /patch/19196/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/branchmap.py b/mercurial/branchmap.py --- a/mercurial/branchmap.py +++ b/mercurial/branchmap.py @@ -233,7 +233,7 @@ class branchcache(dict): def write(self, repo): try: f = repo.vfs(_filename(repo), "w", atomictemp=True) - cachekey = [hex(self.tipnode), str(self.tiprev)] + cachekey = [hex(self.tipnode), '%d' % self.tiprev] if self.filteredhash is not None: cachekey.append(hex(self.filteredhash)) f.write(" ".join(cachekey) + '\n')