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

hgtk: improve argument detection before forking

the name of the 'hgtk' command can include a path, thus startswith was not
sufficient. Fixes #295

Changeset a80b500f6dcb

Parent cc92b9bc76e6

by Steve Borho

Changes to one file · Browse files at a80b500f6dcb Showing diff from parent cc92b9bc76e6 Diff from another changeset...

Change 1 of 1 Show Entire File hgtk Stacked
 
29
30
31
32
 
33
34
35
 
29
30
31
 
32
33
34
35
@@ -29,7 +29,7 @@
   nofork = 'version help' # simple interactive commands should not fork  for i, arg in enumerate(sys.argv): - if arg.startswith('hgtk') and len(sys.argv) >= i: + if 'hgtk' in arg and len(sys.argv) >= i:   cmd = sys.argv[i+1]   break  else: