[PATCH] convert: normalize paths in convert (issue3612)

Matt Mackall mpm at selenic.com
Tue Oct 16 22:01:23 CDT 2012


On Tue, 2012-10-16 at 17:45 -0700, Huayang Guo wrote:
> # HG changeset patch
> # User Huayang <huayang at fb.com>
> # Date 1349479654 25200
> # Node ID 4ec508992e447cff2186fe2212ffd6dfeec6d397
> # Parent  fa714f3ed2989aff64c267c9935251d9fc4f31ee
> convert: normalize paths in convert (issue3612)
> 
> convert doesn't normalise double slashes in paths. Path normalization
> is applied when a path is loaded into filemap and when a file lookup
> request is issued to filemap.

> diff -r fa714f3ed298 -r 4ec508992e44 tests/test-issue3612.sh
> --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
> +++ b/tests/test-issue3612.sh	Fri Oct 05 16:27:34 2012 -0700
> @@ -0,0 +1,48 @@
> +#!/bin/sh
> +
> +rm -rf a
> +rm -rf b
> +rm -rf f

That new .sh file will be very lonely in the test directory. Please
read:

http://mercurial.selenic.com/wiki/WritingTests#No_more_new_test_scripts.21
http://mercurial.selenic.com/wiki/WritingTests#Basic_example

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list