Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

cmenu: small cleanups

remove obsolete imports, remove dead function

Changeset 8c9c49532d2d

Parent 281b663a5fc3

by Steve Borho

Changes to one file · Browse files at 8c9c49532d2d Showing diff from parent 281b663a5fc3 Diff from another changeset...

 
4
5
6
 
7
 
8
9
10
11
12
 
16
17
18
19
 
20
21
22
 
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
 
4
5
6
7
8
9
10
 
11
12
13
 
17
18
19
 
20
21
22
23
 
38
39
40
 
 
 
 
 
 
 
 
 
 
 
41
42
43
@@ -4,9 +4,10 @@
 # Copyright (C) 2007 TK Soh <teekaysoh@gmail.com>    import os +import sys  import tempfile +import pythoncom  import subprocess -import pythoncom  from win32com.shell import shell, shellcon  import win32con  import win32process @@ -16,7 +17,7 @@
 import win32gui_struct  import win32api  import _winreg -from mercurial import hg, util +from mercurial import util  from thgutil import *  import menuthg   @@ -37,17 +38,6 @@
 S_OK = 0  S_FALSE = 1   -def get_clone_repo_name(dir, repo_name): - dest_clone = os.path.join(dir, repo_name) - if os.path.exists(dest_clone): - dest_clone = os.path.join(dir, "Clone of " + repo_name) - - i = 2 - while os.path.exists(dest_clone): - dest_clone = os.path.join(dir, "Clone of (%s) %s" % (i, repo_name)) - i += 1 - return dest_clone -  """Windows shell extension that adds context menu items to Mercurial repository"""  class ContextMenuExtension(menuthg.menuThg):   _reg_progid_ = "Mercurial.ShellExtension.ContextMenu"