Kiln » TortoiseHg » TortoiseHg
Clone URL:  
clone.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# clone.py - Clone dialog for TortoiseHg # # Copyright 2010 Yuki KODAMA <endflow.net@gmail.com> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2, incorporated herein by reference. import os from tortoisehg.util import hglib from tortoisehg.hgqt import cmdui def run(ui, *pats, **opts): src = hglib.toutf(os.getcwd()) dest = src if len(pats) > 1: src = pats[0] dest = pats[1] else: src = pats[0] return cmdui.Dialog(['clone', src, dest])