Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.4rc3, 0.4rc4, and 0.4

cmenu: create the .hgignore file when initializing repo

mainly to workaround Explorer's problem in creating files with name
that start with a dot.

Changeset 67cb458efa2f

Parent 8ff7c4091ee8

by TK Soh

Changes to one file · Browse files at 67cb458efa2f Showing diff from parent 8ff7c4091ee8 Diff from another changeset...

 
520
521
522
 
523
 
 
 
 
 
 
 
 
 
 
524
525
526
 
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
@@ -520,7 +520,18 @@
  if rv == 2:   return   try: + # initialize the repo   hg.repository(ui.ui(), dest, create=1) + + # create the .hgignore file, mainly to workaround + # Explorer's problem in creating files with name + # that start with a dot. + hgignore = os.path.join(dest, '.hgignore') + if not os.path.exists(hgignore): + try: + open(hgignore, 'wb') + except: + pass   except:   msg = "Error creating repo"   win32ui.MessageBox(msg, title,