Changeset 67cb458efa2f…
Parent 8ff7c4091ee8…
by
Changes to one file · Browse files at 67cb458efa2f Showing diff from parent 8ff7c4091ee8 Diff from another changeset...
@@ -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,
|
Loading...