Submitter | Mads Kiilerich |
---|---|
Date | Oct. 27, 2016, 6:06 p.m. |
Message ID | <23f53561a8b6dcfbb350.1477591594@madski> |
Download | mbox | patch |
Permalink | /patch/17208/ |
State | Accepted |
Headers | show |
Comments
On 10/27/2016 08:06 PM, Mads Kiilerich wrote: > # HG changeset patch > # User Mads Kiilerich <madski@unity3d.com> > # Date 1477591593 -7200 > # Thu Oct 27 20:06:33 2016 +0200 > # Branch stable > # Node ID 23f53561a8b6dcfbb35020df4d113fe34fec4c0e > # Parent 69ffbbe73dd03df0d1a00bdb2bc083fdb73ede09 > largefiles: handle that a found standin file doesn't exist when removing it Seems sensible, I've pushed it. Thanks. Cheers,
Patch
diff --git a/hgext/largefiles/reposetup.py b/hgext/largefiles/reposetup.py --- a/hgext/largefiles/reposetup.py +++ b/hgext/largefiles/reposetup.py @@ -217,7 +217,7 @@ def reposetup(ui, repo): # standin. Removing a file as a side effect of # running status is gross, but the alternatives (if # any) are worse. - self.wvfs.unlink(standin) + self.wvfs.unlinkpath(standin, ignoremissing=True) # Filter result lists result = list(result)