Commits

Anonymous committed e1a772a

cmenu: shuffle clone and init menus

  • Participants
  • Parent commits e381bde

Comments (0)

Files changed (1)

File tortoise/contextmenu.py

         rpath = self._folder or self._filenames[0]
         repo = open_repo(rpath)
         if repo is None:
+            result.append(TortoiseMenu(_("Clone a Repository"),
+                           _("clone a repository"),
+                           self._clone, icon="menuclone.ico"))
             result.append(TortoiseMenu(_("Create Repository Here"),
                            _("create a new repository in this directory"),
                            self._init, icon="menucreaterepos.ico"))
-            result.append(TortoiseMenu(_("Clone a Repository"),
-                           _("clone a repository"),
-                           self._clone, icon="menuclone.ico"))
         else:
             result.append(TortoiseMenu(_("View File Status"),
                            _("Repository status"),
 
             result.append(TortoiseMenuSep())
 
-            if repo.root != rpath:
-                result.append(TortoiseMenu(_("Create Repository"),
-                               _("create a new repository in this directory"),
-                               self._init, icon="menucreaterepos.ico"))
-            result.append(TortoiseMenu(_("Create Clone"),
-                           _("Clone a repository here"),
-                           self._clone, icon="menuclone.ico"))
             result.append(TortoiseMenu(_("Synchronize..."),
                            _("Synchronize with remote repository"),
                            self._synch, icon="menusynch.ico"))
             result.append(TortoiseMenu(_("Web Server"),
                            _("start web server for this repository"),
                            self._serve, icon="proxy.ico"))
+            result.append(TortoiseMenu(_("Create Clone"),
+                           _("Clone a repository here"),
+                           self._clone, icon="menuclone.ico"))
+            if repo.root != rpath:
+                result.append(TortoiseMenu(_("Create Repository Here"),
+                               _("create a new repository in this directory"),
+                               self._init, icon="menucreaterepos.ico"))
 
             result.append(TortoiseMenuSep())