very long file name
guo tang
tangguo77 at gmail.com
Wed Nov 14 06:49:59 UTC 2007
Hi, Mark,
Thanks very much for helping out.
The problem is in fact partly due to Windows limitation. Before adding
that file into hg, its name is 171 characters long. When hg tries to
store it. It adds .hg\store\data before the file name. It seems hg
also converts all the upper case letter in file name to "_" plus lower
case.
So after this conversion, the file hg tries to store will have a name
over that 260 char limit. Windows cannot handle that anymore.
In UCM, it is actually very often we need to work on several
activities in the same view/stream. Once one activity is done, there
is
code review process. While waiting for code review feedback (one or
two days), we normally start another activity. When the first
code review finally finished. It might have dependency on the
unfinished activities or rebase activity. Guess what our tools group
tell us
in this scenario: "create a new dynamic view, copy/paste the files
there, then checkin". Due to the size of the code base, we normally
don't create a new static view for new activity. I think I might be
able to use hg this way to help out: the clearcase view snapshot
be used as default branch. Create one hg branch for one activity.
Switching between hg branches will be faster than creating a new UCM
static view after that. Use hg export to get activity back to a UCM
dynamic view before final checkin back to clearcase.
Thanks,
Guo
On Nov 13, 2007 9:21 PM, Mark A. Flacy <mflacy at verizon.net> wrote:
> On 2007.11.13 15:09, guo tang wrote:
> > Gentlemen,
> >
> > I am working on a code base having about 32,000 files, 1.3GB totally
> > storage. We are using clearcase UCM here (sorry I cannot tell you
> > which company).
> > I am tired of creating new stream for each activity.
>
> That's not a UCM requirement. It is possible that you won't be able to
> deliver a specific, single activity when you use the same view for
> multiple simultaneous activities. In practice, that doesn't seem to
> happen that often.
>
> > So I am thinking
> > I might be more productive by doing a snapshot of clearcase view using
> > hg, then
> > work just on hg. Once I am done, put the change back to clearcase.
>
> You're still going to need an activity to commit into clearcase, so I'm
> not sure what pain you are saving.
>
> >
> > First problem I have:
> >
> > trouble committing ...
> > transaction abort!
> > rollback completed
> > abort: The filename or extension is too long:
> > \.hg\store\data/_nx_x_x_x/_software/_xx_x/_xxxxx/_xxxxx/_private/_some_very_long_folder_plus_file_name.html.i
> >
> > I am using hg 0.9.5 in xp sp2.
> >
> > Shall we remove this long file name limitation from hg?
>
> What makes you think it is an hg restriction? IIRC, Windows has a 260
> character path limit.
>
> Ah, yes:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp.
>
> Interesting. Supposedly a path starting with \\?\ has a longer limit.
>
> >
> > Thanks,
> > Guo
> > _______________________________________________
> > Mercurial mailing list
> > Mercurial at selenic.com
> > http://selenic.com/mailman/listinfo/mercurial
> >
>
>
>
> --
> Mark A. Flacy
>
More information about the Mercurial
mailing list