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

clone: use os.getcwd() as the default target

Further improvements require changes to the hg clone command itself
to allow clones to existing empty directories.
Fixes #53

Changeset 66358c6f9e7d

Parent 8cf315a25d96

by Steve Borho

Changes to one file · Browse files at 66358c6f9e7d Showing diff from parent 8cf315a25d96 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​clone.py Stacked
 
29
30
31
32
33
34
35
36
 
38
39
40
41
 
 
 
42
43
44
45
 
 
46
47
48
 
29
30
31
 
 
32
33
34
 
36
37
38
 
39
40
41
42
43
 
 
44
45
46
47
48
@@ -29,8 +29,6 @@
  title += " - %s" % (os.getcwd())   self.set_title(title)   - self._src_path = '' - self._dest_path = ''   self._settings = shlib.Settings('clone')   self._recent_src = self._settings.mrul('src_paths')   self._recent_dest = self._settings.mrul('dest_paths') @@ -38,11 +36,13 @@
  sync_settings = shlib.Settings('synch')   self._sync_src = sync_settings.mrul('src_paths')   - try: + self._src_path = '' + self._dest_path = os.getcwd() + if len(repos) > 1:   self._src_path = repos[0]   self._dest_path = repos[1] - except: - pass + elif len(repos): + self._src_path = repos[0]     # build dialog   self._create()