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

clone: create clone in sibling directory if relative path given

if dest is specified as a relative path and that path is inside the
source repository, move the destination up one directory so the target
is a sibling of the source.

closes #180

Changeset d0fe5cac401f

Parent 167e839ca8b8

by Steve Borho

Changes to one file · Browse files at d0fe5cac401f Showing diff from parent 167e839ca8b8 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​clone.py Stacked
 
264
265
266
 
 
 
 
 
267
268
269
 
264
265
266
267
268
269
270
271
272
273
274
@@ -264,6 +264,11 @@
  dest = None   else:   dest = '.' + else: + abs = os.path.abspath(dest) + dirabs = os.path.dirname(abs) + if dirabs == src: + dest = os.path.join(os.path.dirname(dirabs), dest)     # start cloning   try: