[Bug 3612] New: convert doesn't normalise double slashes in paths

bugzilla-daemon at bz.selenic.com bugzilla-daemon at bz.selenic.com
Thu Sep 6 10:34:50 CDT 2012


          Priority: normal
            Bug ID: 3612
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: convert doesn't normalise double slashes in paths
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: jordigh at octave.org
          Hardware: All
            Status: UNCONFIRMED
           Version: 2.2.2
         Component: convert
           Product: Mercurial

When using a filemap, it's possible to make convert insert double slashes,
which later cause trouble:

mkdir a
cd a
hg init
mkdir foo
echo a > foo/a
hg addremove
hg ci -m "a"
cd ..
echo "rename foo/a foo//bar//a" > f
hg convert --filemap f a b
cd b
hg up
hg st            ## File foo/bar/a is untracked??
hg manifest      ## Double slashes in manifest??
hg add foo/bar/a ## Ok, fine, let's add it again.
hg ci -m "lol"
hg verify        ## Repo corruption?

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Mercurial-devel mailing list