hg on XP : file name too long

View: New views
3 Messages — Rating Filter:   Alert me  

hg on XP : file name too long

by David Van Couvering-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I was trying to set up a clone on my XP VMWare instance, and hg clone
returned the following error:

abort: File name too long:
/home/Administrator/code/netbeans/clean/main/.hg/stor
e/data/cnd.gotodeclaration/test/unit/data/goldenfiles/org/netbeans/modules/cnd/g
otodeclaration/element/providers/_func_var_element_provider_test_case/test_func_
var_case_insensitive_exact_name.ref.i

This is with version 1.0 of Mercurial.  My .hgrc is set up the same as
it is on my Mac.

Any tips?

Thanks,

David

Re: hg on XP : file name too long

by tomwheel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 6/13/08, David Van Couvering <david@...> wrote:

> Any tips?

I have had similar problems in the past.  IIRC, MS Windows has
problems with files whose paths (not just the name portion of the
path) are > 255 characters.  It looks like your using cygwin, and
though you are emulating UNIX, you are still bound by Windows'
limitations.

You may be able to work around by moving your source to a directory
with a shorter path, e.g.:

before:
   /home/Administrator/code/netbeans/clean/main/

after:
   /home/Administrator/nbcleanmain/

OTOH,. that only buys you a little time until someone adds a new file
with an even longer file name.  I am all for descriptive file names,
but the one above (and its parent directory) could easily be shortened
without losing meaning.

--
Tom Wheeler
http://www.tomwheeler.com/

Re: hg on XP : file name too long

by Wade Chandler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--- On Fri, 6/13/08, Tom Wheeler <tomwheel@...> wrote:

> From: Tom Wheeler <tomwheel@...>
> Subject: Re: [nbdev] hg on XP : file name too long
> To: nbdev@...
> Date: Friday, June 13, 2008, 3:54 PM
> On 6/13/08, David Van Couvering
> <david@...> wrote:
>
> > Any tips?
>
> I have had similar problems in the past.  IIRC, MS Windows
> has
> problems with files whose paths (not just the name portion
> of the
> path) are > 255 characters.  It looks like your using
> cygwin, and
> though you are emulating UNIX, you are still bound by
> Windows'
> limitations.
>
> You may be able to work around by moving your source to a
> directory
> with a shorter path, e.g.:
>
> before:
>    /home/Administrator/code/netbeans/clean/main/
>
> after:
>    /home/Administrator/nbcleanmain/
>
> OTOH,. that only buys you a little time until someone adds
> a new file
> with an even longer file name.  I am all for descriptive
> file names,
> but the one above (and its parent directory) could easily
> be shortened
> without losing meaning.
>

Actually, I would use Hg without Cygwin on Windows. I had a similar issue with the long file name in other things under Cygwin, and Cygwin is actually more limited than windows with long file names. It uses an older library:
http://www.cygwin.com/ml/cygwin/2005-04/msg00395.html

Wade

==================
Wade Chandler, CCE
Software Engineer and Developer, Certified Forensic Computer Examiner, NetBeans Dream Team Member, and NetBeans Board Member
http://www.certified-computer-examiner.com
http://wiki.netbeans.org/wiki/view/NetBeansDreamTeam
http://www.netbeans.org
LightInTheBox - Buy quality products at wholesale price