Changeset 5313a09bdd5f…
Parent 698fc26485c5…
by
Changes to one file · Browse files at 5313a09bdd5f Showing diff from parent 698fc26485c5 Diff from another changeset...
@@ -526,6 +526,9 @@
def _init(self, parent_window):
dest = self._folder or self._filenames[0]
+ if os.path.isfile(dest):
+ dest = os.path.dirname(dest)
+
msg = "Create Hg repository in %s?" % (dest)
title = "Mercurial: init"
rv = win32ui.MessageBox(msg, title, win32con.MB_OKCANCEL)
|
Loading...