Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Matt Mackall
- Mon, 16 Dec 2013 18:59:32
Show More
hgext/record.py
0
+2
-1
@@
-502,7
+502,8
b' def dorecord(ui, repo, commitfunc, cmdsu'
502
cmdsuggest )
502
cmdsuggest )
503
503
504
# make sure username is set before going interactive
504
# make sure username is set before going interactive
505
ui . username ()
505
if not opts . get ( 'user' ):
506
ui . username () # raise exception, username not provided
506
507
507
def recordfunc ( ui , repo , message , match , opts ):
508
def recordfunc ( ui , repo , message , match , opts ):
508
"""This is generic record driver.
509
"""This is generic record driver.
mercurial/help/templates.txt
0
+1
-1
@@
-105,4
+105,4
b' Some sample command line templates:'
105
105
106
- Display the contents of the 'extra' field, one per line::
106
- Display the contents of the 'extra' field, one per line::
107
107
108
$ hg log -r 0 --template "{join(extras, '\n')}\n"
108
$ hg log -r 0 --template "{join(extras, '\n')}\n"
tests/test-module-imports.t
0
+7
0
@@
-2,6
+2,13
b' This code uses the ast module, which was'
2
this test on anything earlier.
2
this test on anything earlier.
3
$ python -c ' import sys ; assert sys . version_info >= ( 2 , 6 ) ' || exit 80
3
$ python -c ' import sys ; assert sys . version_info >= ( 2 , 6 ) ' || exit 80
4
4
5
Virtualenv has a habit of leaving BaseHTTPServer and other modules in
6
a place where the import checker is confused about their nature as
7
part of the stdlib. Skip the test if BaseHTTPServer' s path isn 't a
8
subpath of sys.prefix.
9
10
$ python -c ' import sys , BaseHTTPServer ; assert BaseHTTPServer . __file__ . startswith ( sys . prefix ) ' || exit 80
11
5
$ import_checker="$TESTDIR"/../contrib/import-checker.py
12
$ import_checker="$TESTDIR"/../contrib/import-checker.py
6
Run the doctests from the import checker, and make sure
13
Run the doctests from the import checker, and make sure
7
it' s working correctly .
14
it' s working correctly .
tests/test-record.t
0
+20
0
@@
-1277,5
+1277,25
b' Ignore win32text deprecation warning for'
1277
c
1277
c
1278
+ d
1278
+ d
1279
1279
1280
Test -- user when ui . username not set
1281
$ unset HGUSER
1282
$ echo e >> subdir/f1
1283
$ hg record --config ui.username= -d ' 8 0 ' --user xyz -m "user flag" << EOF
1284
> y
1285
> y
1286
> EOF
1287
diff -- git a / subdir / f1 b / subdir / f1
1288
1 hunks , 1 lines changed
1289
examine changes to 'subdir/f1' ? [ Ynesfdaq ? ]
1290
@@ - 4 , 3 + 4 , 4 @@
1291
b
1292
c
1293
d
1294
+ e
1295
record this change to 'subdir/f1' ? [ Ynesfdaq ? ]
1296
$ hg log -- template ' {author} \n ' - l 1
1297
xyz
1298
$ HGUSER = "test"
1299
$ export HGUSER
1280
1300
1281
$ cd ..
1301
$ cd ..
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