comparison mercurial/hg.py @ 2798:8cd3e19bf4a5

Add a doc string
author Matt Mackall <mpm@selenic.com>
date Thu, 03 Aug 2006 13:07:57 -0500
parents b1b1aa6f275c
children b550cd82f92a
comparison
equal deleted inserted replaced
2773:871ca5b9d348 2798:8cd3e19bf4a5
47 except AttributeError: 47 except AttributeError:
48 return False 48 return False
49 return repo.local() 49 return repo.local()
50 50
51 def repository(ui, path=None, create=False): 51 def repository(ui, path=None, create=False):
52 """return a repository object for the specified path"""
52 return _lookup(path).instance(ui, path, create) 53 return _lookup(path).instance(ui, path, create)
53 54
54 def defaultdest(source): 55 def defaultdest(source):
55 '''return default destination of clone if none is given''' 56 '''return default destination of clone if none is given'''
56 return os.path.basename(os.path.normpath(source)) 57 return os.path.basename(os.path.normpath(source))
57 58
58 def clone(ui, source, dest=None, pull=False, rev=None, update=True, 59 def clone(ui, source, dest=None, pull=False, rev=None, update=True,
59 stream=False): 60 stream=False):
60 """Make a copy of an existing repository. 61 """Make a copy of an existing repository.
61 62
62 Create a copy of an existing repository in a new directory. The 63 Create a copy of an existing repository in a new directory. The