Submitter | Chinmay Joshi |
---|---|
Date | May 27, 2014, 6:58 p.m. |
Message ID | <0375426f4b794f252af6.1401217082@ubuntu> |
Download | mbox | patch |
Permalink | /patch/4870/ |
State | Rejected |
Headers | show |
Comments
On Wed, 2014-05-28 at 00:28 +0530, Chinmay Joshi wrote: > # HG changeset patch > # User Chinmay Joshi <c@chinmayjoshi.com> > # Date 1401215049 -19800 > # Tue May 27 23:54:09 2014 +0530 > # Node ID 0375426f4b794f252af6d1d7fbfd600a68071027 > # Parent efb2278e2384a03ba4524ad2d6c68483cf1486d5 > vfs: add lstat() in api > > This change adds lstat() in file API of vfs. > > diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py > --- a/mercurial/scmutil.py > +++ b/mercurial/scmutil.py > @@ -226,6 +226,9 @@ > def unlink(self, path=None): > return util.unlink(self.join(path)) > > + def unlinkpath(self, path=None, ignoremissing=True): > + return util.unlinkpath(self.join(path), ignoremissing) This isn't lstat?? > def utime(self, path=None, t=None): > return os.utime(self.join(path), t) > > _______________________________________________ > Mercurial-devel mailing list > Mercurial-devel@selenic.com > http://selenic.com/mailman/listinfo/mercurial-devel
Patch
diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -226,6 +226,9 @@ def unlink(self, path=None): return util.unlink(self.join(path)) + def unlinkpath(self, path=None, ignoremissing=True): + return util.unlinkpath(self.join(path), ignoremissing) + def utime(self, path=None, t=None): return os.utime(self.join(path), t)