Submitter | Katsunori FUJIWARA |
---|---|
Date | June 2, 2016, 3:47 p.m. |
Message ID | <acdd1b25ab08f8d8e3a3.1464882465@feefifofum> |
Download | mbox | patch |
Permalink | /patch/15365/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -367,7 +367,7 @@ class dirstate(object): def setbranch(self, branch): self._branch = encoding.fromlocal(branch) - f = self._opener('branch', 'w', atomictemp=True) + f = self._opener('branch', 'w', atomictemp=True, checkambig=True) try: f.write(self._branch + '\n') f.close()