##// END OF EJS Templates
subrepo: avoids empty commit when .hgsubstate is dirty (issue2403)...
subrepo: avoids empty commit when .hgsubstate is dirty (issue2403) This patch avoids empty commit when .hgsubstate is dirty. Empty commit was caused by .hgsubstate being updated back to the state of the working copy parent when committing, if a user had changed it manually and not made any changes in subrepositories. The subrepository state from the working copies parent is compared with the state calculated as a result of trying to commit the subrepositories. If the two states are the same, then return None otherwise the commit is just done. The line: "committing subrepository x" will be written if there is nothing committed, but .hgsubstate is dirty for x subrepository.

File last commit:

r5688:883d887c default
r13155:f02d7a56 default
Show More
test-dispatch.py.out
23 lines | 481 B | text/plain | TextLexer
/ tests / test-dispatch.py.out
Thomas Arendsen Hein
Added test for commands.dispatch (especially 88803a69b24)
r5095 running: init test1
result: None
running: add foo
Patrick Mezard
commands: add exits(1) if a specified file cannot be added (issue 891)
r5688 result: 0
Thomas Arendsen Hein
Added test for commands.dispatch (especially 88803a69b24)
r5095 running: commit -m commit1 -d 2000-01-01 foo
result: None
running: commit -m commit2 -d 2000-01-02 foo
result: None
running: log -r 0
changeset: 0:0e4634943879
user: test
date: Sat Jan 01 00:00:00 2000 +0000
summary: commit1
result: None
running: log -r tip
changeset: 1:45589e459b2e
tag: tip
user: test
date: Sun Jan 02 00:00:00 2000 +0000
summary: commit2
result: None