[PATCH 3 of 4] vfs: add lstat() in api

Matt Mackall mpm at selenic.com
Tue May 27 14:00:21 CDT 2014


On Wed, 2014-05-28 at 00:28 +0530, Chinmay Joshi wrote:
> # HG changeset patch
> # User Chinmay Joshi <c at 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 at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list