| 1 |
$ rm -rf a |
| 2 |
$ hg init a |
| 3 |
$ cd a |
| 4 |
$ echo a > a |
| 5 |
$ hg ci -Am0 |
| 6 |
adding a |
| 7 |
$ hg tag t1 # 1 |
| 8 |
$ hg tag --remove t1 # 2 |
| 9 |
|
| 10 |
$ hg co 1 |
| 11 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 12 |
$ hg tag -f -r0 t1 |
| 13 |
$ hg tags |
| 14 |
tip 3:a49829c4fc11 |
| 15 |
t1 0:f7b1eb17ad24 |
| 16 |
|
| 17 |
Ensure that the username access fails gracefully if assumptions about the |
| 18 |
environment made by python do not hold. |
| 19 |
|
| 20 |
#if windows |
| 21 |
>>> import os |
| 22 |
>>> from mercurial import util |
| 23 |
>>> os.environ.pop('LOGNAME', None) and None |
| 24 |
>>> os.environ.pop('USER', None) and None |
| 25 |
>>> os.environ.pop('LNAME', None) and None |
| 26 |
>>> os.environ.pop('USERNAME', None) and None |
| 27 |
>>> print(util.username()) |
| 28 |
None |
| 29 |
#endif |
| 30 |
|
| 31 |
$ cd .. |