Why is mercurial hanging during adding file changes?

So, I was opening a new project in mercurial that had a bit of a history.  I ran the normal:

hg clone ssh://hg@bitbucket.org/mycompany/somerepository

Which has worked pretty fast on the smaller repositories that I've cloned.  THIS time, it got to "adding file changes" .... and stopped.  The thing appeared totally hung, for at least the 10 minutes that I waited.  I cancelled it, and tried again. No luck.  So, after some searching, I came upon the debug command, which looks like this:

hg --debug clone ssh://hg@bitbucket.org/Mycompany/Somerepository

The result?  

files: 891:4346 chunks (1.50%)
adding lib/AutoMapper/Automapper.dll revisions
files: 892:4346 chunks (1.51%)
adding lib/FluentNHibernate/Antlr3.Runtime.dll revisions 
(etc... a LOT... 4346 times, actually)

 

Turns out that the problem was just that there were a lot of revisions of everything, and it was all just taking a while. Oops, I probably should have waited instead of restarting it, I would have been 10 minutes further along. But at least with the debug switch now, I know what it's doing and where it's up to if it's going to take a long time.

 

 


Posted 08-11-2011 4:35 PM by Anne Epstein
Filed under: ,

[Advertisement]

Comments

Pedro Reys wrote re: Why is mercurial hanging during adding file changes?
on 08-11-2011 6:20 PM

Don't know if you've done this already, but hg by default does not use ssh compression. I have an alias on my .hgrc to make force it:

ssh = ssh -C

Chris Sutton wrote re: Why is mercurial hanging during adding file changes?
on 08-12-2011 9:59 AM

--debug will give you plenty of information, probably more than you want.

I'd recommend that you just enable the progress extension if you want an nice in between amount of status information about your clone operation.

In the [extensions] section of your mercurial.ini just add 'progress = ' and you'll get more progress information so larger operations don't get mistaken for being hung.

Anne Epstein wrote re: Why is mercurial hanging during adding file changes?
on 08-15-2011 10:12 AM

Thanks, this is good stuff!  Everyone else,make both of these config changes...they're exactly the kind of stuff that'll make your day better. (wish I'd known about them a few days ago....)

Jean Ventura wrote re: Why is mercurial hanging during adding file changes?
on 09-29-2013 2:29 PM

Chris Sutton suggestion nailed it. In the end, I was just getting impatient cause my internet connection was slow.

Add a Comment

(required)  
(optional)
(required)  
Remember Me?

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)