Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Alexis S. L. Carvalho
- Tue, 17 Jul 2007 12:28:01
Show More
hgext/convert/__init__.py
0
+2
0
@@
-295,6
+295,8
b' def _convert(ui, src, dest=None, mapfile'
295
srcauthor=whatever string you want
295
srcauthor=whatever string you want
296
'''
296
'''
297
297
298
util . _encoding = 'UTF-8'
299
298
if not dest :
300
if not dest :
299
dest = hg . defaultdest ( src ) + "-hg"
301
dest = hg . defaultdest ( src ) + "-hg"
300
ui . status ( "assuming destination %s \n " % dest )
302
ui . status ( "assuming destination %s \n " % dest )
mercurial/commands.py
0
+4
-1
@@
-1993,7
+1993,10
b' def parents(ui, repo, file_=None, **opts'
1993
"""
1993
"""
1994
rev = opts . get ( 'rev' )
1994
rev = opts . get ( 'rev' )
1995
if file_ :
1995
if file_ :
1996
ctx = repo . filectx ( file_ , changeid = rev )
1996
files , match , anypats = cmdutil . matchpats ( repo , ( file_ ,), opts )
1997
if anypats or len ( files ) != 1 :
1998
raise util . Abort ( _ ( 'can only specify an explicit file name' ))
1999
ctx = repo . filectx ( files [ 0 ], changeid = rev )
1997
elif rev :
2000
elif rev :
1998
ctx = repo . changectx ( rev )
2001
ctx = repo . changectx ( rev )
1999
else :
2002
else :
tests/test-parents
0
+19
-2
@@
-1,8
+1,8
b''
1
#!/bin/sh
1
#!/bin/sh
2
# test parents command
2
# test parents command
3
3
4
hg init a
4
hg init repo
5
cd a
5
cd repo
6
echo % no working directory
6
echo % no working directory
7
hg parents
7
hg parents
8
8
@@
-25,3
+25,20
b' hg parents -r 2'
25
25
26
echo % hg parents -r 2 a
26
echo % hg parents -r 2 a
27
hg parents -r 2 a
27
hg parents -r 2 a
28
29
echo % hg parents -r 2 ../a
30
hg parents -r 2 ../a
31
32
echo '% cd dir; hg parents -r 2 ../a'
33
mkdir dir
34
cd dir
35
hg parents -r 2 ../a
36
37
echo '% hg parents -r 2 path:a'
38
hg parents -r 2 path:a
39
40
echo '% hg parents -r 2 glob:a'
41
cd ..
42
hg parents -r 2 glob:a
43
44
true
tests/test-parents.out
0
+16
0
@@
-26,3
+26,19
b' user: test'
26
date: Thu Jan 01 00:00:00 1970 +0000
26
date: Thu Jan 01 00:00:00 1970 +0000
27
summary: ab
27
summary: ab
28
28
29
% hg parents -r 2 ../a
30
abort: ../a not under root
31
% cd dir; hg parents -r 2 ../a
32
changeset: 0:b6a1406d8886
33
user: test
34
date: Thu Jan 01 00:00:00 1970 +0000
35
summary: ab
36
37
% hg parents -r 2 path:a
38
changeset: 0:b6a1406d8886
39
user: test
40
date: Thu Jan 01 00:00:00 1970 +0000
41
summary: ab
42
43
% hg parents -r 2 glob:a
44
abort: can only specify an explicit file name
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages