3r1co / hg4j

Automatically exported from code.google.com/p/hg4j
GNU General Public License v2.0
0 stars 1 forks source link

Bad status in wc with file rename against base revision #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
repository with ./file1 with few revisions.

$hg move file1 file2
$hg status -C
A file2
  file1
R file1

new WCSC().status(baseRev):
file1 is not reported as removed.

WCC.checkLocalStatusAgainstBaseRevision when base misses file2 and dirstate 
reported it as added, removes rename source (file1) from list of base files 
(effectively leaves rename source unprocessed)

Original issue reported on code.google.com by tikhomir...@gmail.com on 11 Jul 2012 at 8:19

GoogleCodeExporter commented 8 years ago
There's another defect that shows up once we leave rename source for further 
processing. All unprocessed files in baseRevFiles are considered deleted 
somewhere between base revision and present state and are reported as such. 
Then, however, there's extra code that looks at all present files not yet 
processed, and report those marked deleted as Removed (provided they were known 
at the time of base). Since baseRevFiles wasn't cleared when first iteration 
occured, file1 get reported (as R) twice.

Original comment by tikhomir...@gmail.com on 11 Jul 2012 at 8:26

GoogleCodeExporter commented 8 years ago
Fixed in revision 5c09a9f2e073

Original comment by tikhomir...@gmail.com on 11 Jul 2012 at 8:46