comparison mercurial/hg.py @ 5236:cbe6e263357b

parseurl: also return the revision after the "#"; add a test
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Mon, 27 Aug 2007 01:44:35 -0300
parents 156f4c8a12aa
children fe55e3d6dc0b
comparison
equal deleted inserted replaced
5235:8ede77c2d008 5236:cbe6e263357b
97 update: update working directory after clone completes, if 97 update: update working directory after clone completes, if
98 destination is local repository 98 destination is local repository
99 """ 99 """
100 100
101 origsource = source 101 origsource = source
102 source, rev = cmdutil.parseurl(ui.expandpath(source), rev) 102 source, rev, checkout = cmdutil.parseurl(ui.expandpath(source), rev)
103 103
104 if isinstance(source, str): 104 if isinstance(source, str):
105 src_repo = repository(ui, source) 105 src_repo = repository(ui, source)
106 else: 106 else:
107 src_repo = source 107 src_repo = source