Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Benoit Boissinot
- Tue, 31 Oct 2006 12:02:49
Show More
mercurial/merge.py
0
+3
-7
@@
-384,13
+384,9
b' def update(repo, node, branchmerge, forc'
384
384
if branchmerge :
385
385
raise util . Abort ( _ ( "there is nothing to merge, just use "
386
386
"'hg update' or look at 'hg heads'" ))
387
elif not branchmerge :
388
if not overwrite :
389
if wc . files ():
390
raise util . Abort ( _ ( "outstanding uncommited changes, use "
391
"'hg update -C' to lose changes" ))
392
else :
393
overwrite = True
387
elif not ( overwrite or branchmerge ) :
388
raise util . Abort ( _ ( "update spans branches, use 'hg merge' "
389
"or 'hg update -C' to lose changes" ))
394
390
if branchmerge and not forcemerge :
395
391
if wc . modified () or wc . added () or wc . removed ():
396
392
raise util . Abort ( _ ( "outstanding uncommitted changes" ))
tests/test-merge5
0
0
-4
@@
-12,13
+12,9
b' hg commit -m"comment #1" -d "1000000 0"'
12
12
hg update 0
13
13
rm b
14
14
hg commit -A -m"comment #2" -d "1000000 0"
15
16
echo This is file a > a
17
15
# in theory, we shouldn't need the "-y" below, but it prevents
18
16
# this test from hanging when "hg update" erroneously prompts the
19
17
# user for "keep or delete"
20
hg update -y 1 # should fail (unclean repo)
21
hg revert a
22
18
hg update -y 1
23
19
24
20
exit 0
tests/test-merge5.out
0
+1
-2
@@
-1,4
+1,3
b''
1
1
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
2
2
removing b
3
abort: outstanding uncommited changes, use 'hg update -C' to lose changes
4
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
3
abort: update spans branch es, use 'hg merge' or 'hg update -C' to lose changes
tests/test-up-local-change.out
0
+1
-1
@@
-93,7
+93,7
b' user: test'
93
93
date: Mon Jan 12 13:46:40 1970 +0000
94
94
summary: 2
95
95
96
abort: outstanding uncommited changes, use 'hg update -C' to lose changes
96
abort: update spans branch es, use 'hg merge' or 'hg update -C' to lose changes
97
97
failed
98
98
abort: outstanding uncommitted changes
99
99
failed
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