Submitter | Ryan McElroy |
---|---|
Date | March 21, 2017, 1:54 p.m. |
Message ID | <05060c142764cd34c9ad.1490104465@devbig314.prn1.facebook.com> |
Download | mbox | patch |
Permalink | /patch/19521/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/vfs.py b/mercurial/vfs.py --- a/mercurial/vfs.py +++ b/mercurial/vfs.py @@ -223,6 +223,10 @@ class abstractvfs(object): def unlink(self, path=None): return util.unlink(self.join(path)) + def tryunlink(self, path=None): + """Attempt to remove a file, ignoring missing file errors.""" + util.tryunlink(self.join(path)) + def unlinkpath(self, path=None, ignoremissing=False): return util.unlinkpath(self.join(path), ignoremissing=ignoremissing)