Path Contains Illegal Component

Jensen, Aaron ajensen at webmd.net
Mon Jul 2 18:46:52 UTC 2012


> > We've come up with some steps to reproduce this issue.  I'll file a bug later today.
> 
> Did this happen?
>

Sorry.  I was out of town last week and swamped the week before.  I finally filed [Bug 3523 - Renaming and adding files in same changeset causes update/merge failure](http://bz.selenic.com/show_bug.cgi?id=3523).  This isn't an issue in 2.1.2, but is an issue in 2.2.2.  Here are the steps to reproduce:

> hg init illegal_path_component         
> cd .\illegal_path_component            
> '' > root.txt
> mkdir sub                              
> '' > sub/sub.txt 
> hg add sub/sub.txt root.txt                               
> hg commit -m "Initial commit."         
> '' > sub\new.txt
> hg add sub\new.txt
> hg rename sub\sub.txt sub.txt      
> hg commit -m "Moving/adding."          
> hg up 0
> hg up 1
abort: path contains illegal component: \new.txt
> hg branch feature
> 'a' > root.txt
> hg commit -m "Feature update."
> hg up default
abort: path contains illegal component: \new.txt
> hg up default -C
3 files updated, 0 files merged, 0 files removed, 0 files unresolved
> hg merge feature
abort: path contains illegal component: \new.txt

[This test repository on BitBucket shows the issue.](https://bitbucket.org/johnweldon/hg_bug)

     <:> Aaron



More information about the Mercurial mailing list