[issue505] Mercurial could not commit files with valid filenames

Michael Gebetsroither mercurial-bugs at selenic.com
Sat Feb 17 06:44:46 CST 2007


New submission from Michael Gebetsroither <michael.geb at gmx.at>:

This could be the bug which hit one of my servers a while ago.
Mercurial could not store all filenames which are valid in the filesystem but
imposes additional restrictions.
Only files up to the half of the maximum file length - 2 could be stored if it
consists of all uppercase chars.

% hg init
% touch `python -c 'print "A"*150'`
% hg add
adding
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
% hg ci -m 'test'
trouble committing
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA!
abort: File name too long:
/home/einstein/tmp/.hg/store/data/_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a.i

----------
messages: 2778
nosy: gebi
priority: bug
status: unread
title: Mercurial could not commit files with valid filenames

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue505>
____________________________________________________



More information about the Mercurial-devel mailing list