make revlog.addgroup pass its file handles to addrevision
This should fix issue255.
It looks like the problem there happens when addgroup calls addrevision
to add a full revision, and addrevision decides to split the index file
into a .i/.d pair. Since addgroup has an open file handle for the
index file, the renaming of the new .i file to its final name fails on
windows.
adding a
adding b
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
changeset: 0:b544c4ac4389
user: test
date: Mon Jan 12 13:46:40 1970 +0000
summary: 0
Using head f4ac749470f2 for branch foo
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
changeset: 1:f4ac749470f2
tag: foo
tag: tip
user: test
date: Mon Jan 12 13:46:40 1970 +0000
summary: 1
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
adding c
Using head f4ac749470f2 for branch foo
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
(branch merge, don't forget to commit)
changeset: 2:1505d56ee00e
tag: tip
parent: 0:b544c4ac4389
user: test
date: Mon Jan 12 13:46:40 1970 +0000
summary: 0.0
changeset: 1:f4ac749470f2
tag: foo
branch: foo
user: test
date: Mon Jan 12 13:46:40 1970 +0000
summary: 1
2 files updated, 0 files merged, 1 files removed, 0 files unresolved
adding d
Using head f4ac749470f2 for branch foo
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
(branch merge, don't forget to commit)
changeset: 3:53b72df12ae5
tag: tip
parent: 0:b544c4ac4389
user: test
date: Mon Jan 12 13:46:40 1970 +0000
summary: 0.0
changeset: 1:f4ac749470f2
tag: foo
branch: foo
user: test
date: Mon Jan 12 13:46:40 1970 +0000
summary: 1