Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

hginit: use parent directory if the given path isn't directory

Changeset de4776c41dd2

Parent 7b11e4355d7d

by Yuki KODAMA

Changes to one file · Browse files at de4776c41dd2 Showing diff from parent 7b11e4355d7d Diff from another changeset...

 
33
34
35
36
 
 
 
 
37
38
39
 
33
34
35
 
36
37
38
39
40
41
42
@@ -33,7 +33,10 @@
  self.cwd = os.getcwd()     # preconditioning info - self.dest_path = os.path.abspath(repos and repos[0] or self.cwd) + path = os.path.abspath(repos and repos[0] or self.cwd) + if not os.path.isdir(path): + path = os.path.dirname(path) + self.dest_path = path     # layout table   table = gtklib.LayoutTable()