[PATCH 1 of 4 V2] pathutil: add dirname and join functions

Durham Goode durham at fb.com
Wed May 27 13:04:20 CDT 2015



On 5/26/15 8:01 AM, Augie Fackler wrote:
> On Fri, May 22, 2015 at 01:50:15PM -0700, Durham Goode wrote:
>> # HG changeset patch
>> # User Durham Goode <durham at fb.com>
>> # Date 1432324038 25200
>> #      Fri May 22 12:47:18 2015 -0700
>> # Node ID 53d97bfd60a1d5e397b808def920fe6a73a1cac6
>> # Parent  f2b98dacb37ddd6713b11a1a871fcdbbc5fd8bb2
>> pathutil: add dirname and join functions
>>
>> This adds dirname and join functions to pathutil which are explicitly for
>> handling '/' delimited paths. The implementations are basically copy paste from
>> python's posix os.path.dirname and os.path.join functions.
> Why not just *use* posixpath.join() et al in these methods, rather
> than carrying around a bonus implementation?
I didn't realize it existed.  I'll resend with them.


More information about the Mercurial-devel mailing list