diff -r 0c2f0048125d -r b35e3364f94a mercurial/localrepo.py --- a/mercurial/localrepo.py Sun Dec 09 23:33:16 2012 +0100 +++ b/mercurial/localrepo.py Sun Dec 09 23:33:16 2012 +0100 @@ -2655,7 +2655,7 @@ fp.write(text) finally: fp.close() - return self.pathto(fp.name[len(self.root)+1:]) + return self.pathto(fp.name[len(self.root) + 1:]) # used to avoid circular references so destructors work def aftertrans(files):