Project with lot of files causes error

Slava Davydov's Avatar

Slava Davydov

09 Apr, 2013 10:09 AM

I have a project where a lot of files are commites (

When I want to clone the repository, I'm getting the following error: (and on client side 'requesting all changes' doesn't dissapper)

13:03:10.3052 - Error -       davs - HgSharp.Server.HgHttpServer - exceptionSystem.IO.IOException: The process cannot access the file '[My project on FileSystem]\.hg\store\fncache' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at HgSharp.Core.HgFileSystem.OpenOrCreateWriteInternal(String path) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Core\HgFileSystem.cs:line 70
   at HgSharp.Core.HgFileSystem.OpenOrCreateWrite(String path) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Core\HgFileSystem.cs:line 65
   at HgSharp.Core.HgFnCacheStore.GetFilelog(HgPath hgPath) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Core\HgFnCacheStore.cs:line 80
   at HgSharp.Core.HgRepository.GetFilelog(HgPath hgPath) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Core\HgRepository.cs:line 404
   at HgSharp.Core.HgBundleBuilder.BuildBundleFile(HgRepository hgRepository, HgRevset hgRevset, String path) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Core\HgBundleBuilder.cs:line 76
   at HgSharp.Core.HgBundleBuilder.<BuildBundleFiles>d__5.MoveNext() in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Core\HgBundleBuilder.cs:line 51
   at HgSharp.Core.HgBundleWriter.WriteBundle(HgBundle hgBundle, Stream stream, HgBundleFormat format, HgBundleCompression compression) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Core\HgBundleWriter.cs:line 49
   at HgSharp.Server.HgHttpServer.ExecuteGetBundle(NameValueCollection args) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Server\HgHttpServer.cs:line 256
   at HgSharp.Server.HgHttpServer.<>c__DisplayClass2`1.<Args>b__1(HgHttpCommandContext httpContext) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Server\HgHttpServer.cs:line 69
   at HgSharp.Server.HgHttpServer.<>c__DisplayClass8.<ReadCommand>b__7(HgHttpCommandContext httpContext) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Server\HgHttpServer.cs:line 120
   at HgSharp.Server.HgHttpServer.<>c__DisplayClassb.<ExceptionHandler>b__a(HgHttpCommandContext httpContext) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Server\HgHttpServer.cs:line 129    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at HgSharp.Core.HgFileSystem.OpenOrCreateWriteInternal(String path) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Core\HgFileSystem.cs:line 70
   at HgSharp.Core.HgFileSystem.OpenOrCreateWrite(String path) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Core\HgFileSystem.cs:line 65
   at HgSharp.Core.HgFnCacheStore.GetFilelog(HgPath hgPath) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Core\HgFnCacheStore.cs:line 80
   at HgSharp.Core.HgRepository.GetFilelog(HgPath hgPath) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Core\HgRepository.cs:line 404
   at HgSharp.Core.HgBundleBuilder.BuildBundleFile(HgRepository hgRepository, HgRevset hgRevset, String path) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Core\HgBundleBuilder.cs:line 76
   at HgSharp.Core.HgBundleBuilder.<BuildBundleFiles>d__5.MoveNext() in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Core\HgBundleBuilder.cs:line 51
   at HgSharp.Core.HgBundleWriter.WriteBundle(HgBundle hgBundle, Stream stream, HgBundleFormat format, HgBundleCompression compression) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Core\HgBundleWriter.cs:line 49
   at HgSharp.Server.HgHttpServer.ExecuteGetBundle(NameValueCollection args) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Server\HgHttpServer.cs:line 256
   at HgSharp.Server.HgHttpServer.<>c__DisplayClass2`1.<Args>b__1(HgHttpCommandContext httpContext) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Server\HgHttpServer.cs:line 69
   at HgSharp.Server.HgHttpServer.<>c__DisplayClass8.<ReadCommand>b__7(HgHttpCommandContext httpContext) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Server\HgHttpServer.cs:line 120
   at HgSharp.Server.HgHttpServer.<>c__DisplayClassb.<ExceptionHandler>b__a(HgHttpCommandContext httpContext) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Server\HgHttpServer.cs:line 129

If you'd like I could provide you access to that system or TeamViewer session

Thanks,
Slava

  1. 1 Posted by Slava Davydov on 09 Apr, 2013 10:11 AM

    Slava Davydov's Avatar

    P.S. In project now 3484 files

  2. Support Staff 2 Posted by Anton Gogolev on 09 Apr, 2013 10:19 AM

    Anton Gogolev's Avatar

    Slava,

    Try running hg verify on that repository. There's a chance it might be corrupt.

  3. Anton Gogolev closed this discussion on 09 Apr, 2013 10:19 AM.

  4. Slava Davydov re-opened this discussion on 09 Apr, 2013 10:32 AM

  5. 3 Posted by Slava Davydov on 09 Apr, 2013 10:32 AM

    Slava Davydov's Avatar

    on local machine (without hglab) it clones ok

    hg verify for each file shows: 'missing revlog!'

  6. 4 Posted by Slava Davydov on 09 Apr, 2013 10:39 AM

    Slava Davydov's Avatar

    P.S.

    hg verify for each file shows: 'missing revlog!'

    is also show the same message for all fels in other repos which clones ok

  7. Support Staff 5 Posted by Anton Gogolev on 09 Apr, 2013 10:42 AM

    Anton Gogolev's Avatar

    When you clone from local filesystem to local filesystem, Mercurial doesn't actually clone anything.

    Try running hg clone <source> <destination> --pull

    Where is this repository coming from?

  8. Anton Gogolev closed this discussion on 09 Apr, 2013 10:42 AM.

  9. Slava Davydov re-opened this discussion on 09 Apr, 2013 10:51 AM

  10. 6 Posted by Slava Davydov on 09 Apr, 2013 10:51 AM

    Slava Davydov's Avatar

    1) pulled ok

    2) repository creates from scratch (created folder on fs and it was added to hglab, than commit )

  11. Support Staff 7 Posted by Anton Gogolev on 09 Apr, 2013 11:51 AM

    Anton Gogolev's Avatar

    That's strange.

    Email me at anton.gogolev at hglabhq.com and we'll arrange a TeamViewer session.

  12. 8 Posted by Slava Davydov on 09 Apr, 2013 12:01 PM

    Slava Davydov's Avatar

    before we used skype. Could you skype me ?

  13. Anton Gogolev closed this discussion on 09 Apr, 2013 12:26 PM.

  14. Anton Gogolev re-opened this discussion on 18 Apr, 2013 04:10 PM

  15. Anton Gogolev closed this discussion on 18 Apr, 2013 04:10 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

03 Aug, 2022 01:49 PM
05 Jul, 2022 07:01 PM
28 Mar, 2022 04:42 PM
21 Jan, 2022 10:43 AM
20 Jan, 2022 10:45 AM

 

18 Jan, 2022 10:15 AM
19 Mar, 2021 06:13 PM
01 Mar, 2021 02:51 PM
01 Jan, 2021 02:19 AM
28 Aug, 2020 08:34 AM
23 Jun, 2020 08:29 AM