[PATCH 1 of 2] util: state docstring of rename more precisely

Matt Mackall mpm at selenic.com
Wed Oct 7 15:23:09 CDT 2009


On Wed, 2009-10-07 at 16:19 -0400, Greg Ward wrote:
> On Wed, Oct 7, 2009 at 4:11 PM, Adrian Buehlmann <adrian at cadifra.com> wrote:
> > # HG changeset patch
> > # User Adrian Buehlmann <adrian at cadifra.com>
> > # Date 1254939403 -7200
> > # Node ID 0a8a3f3fadbb925f0e28f716a5544b68d803709f
> > # Parent  98feea5659d902bdca558ea7c9fed7670eb4f5e9
> > util: state docstring of rename more precisely
> >
> > diff --git a/mercurial/util.py b/mercurial/util.py
> > --- a/mercurial/util.py
> > +++ b/mercurial/util.py
> > @@ -400,7 +400,7 @@ def lexists(filename):
> >     return True
> >
> >  def rename(src, dst):
> > -    """forcibly rename a file"""
> > +    '''atomically rename file src to dst, replacing dst if it exists'''
> 
> Isn't this patch rather pointless, given that you're about to move the
> code in question wholesale?  Why not just rewrite the docstring in the
> move-to-windows.py patch?

Because code movement and reformatting are hard to review when combined
with other changes.

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial-devel mailing list