comparison mercurial/hg.py @ 6338:0750f11152fe

clone: print "updating working directory" status message With this change, "hg clone" looks like this: % hg clone http://example.com/repo/big big requesting all changes adding changesets adding manifests adding file changes added XXX changesets with XXX changes to XXX files updating working directory XXX files updated, XXX files merged, XXX files removed, XXX files unresolved So the user sees % hg clone http://example.com/repo/big big requesting all changes adding changesets adding manifests adding file changes added XXX changesets with XXX changes to XXX files updating working directory while Mercurial is writing to disk to populate the working directory With this change, "hg clone" looks like this: % hg clone big big-work updating working directory XXX files updated, XXX files merged, XXX files removed, XXX files unresolved
author Adrian Buehlmann <adrian@cadifra.com>
date Fri, 21 Mar 2008 14:52:24 +0100
parents 5c96a4bca66b
children 92ccccb55ba3 e51c0f41f271
comparison
equal deleted inserted replaced
6337:d2713d902524 6338:0750f11152fe
241 fp.write("[paths]\n") 241 fp.write("[paths]\n")
242 fp.write("default = %s\n" % abspath) 242 fp.write("default = %s\n" % abspath)
243 fp.close() 243 fp.close()
244 244
245 if update: 245 if update:
246 dest_repo.ui.status(_("updating working directory\n"))
246 if not checkout: 247 if not checkout:
247 try: 248 try:
248 checkout = dest_repo.lookup("default") 249 checkout = dest_repo.lookup("default")
249 except: 250 except:
250 checkout = dest_repo.changelog.tip() 251 checkout = dest_repo.changelog.tip()