Mercurial > hg-stable
comparison mercurial/copies.py @ 18899:d8ff607ef721
scmutil: use new dirs class in dirstate and context
The multiset-of-directories code was open coded in each of these
modules; this change gets rid of the duplication.
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Wed, 10 Apr 2013 15:08:26 -0700 |
parents | 3cfaace0441e |
children | 4327687ca757 |
comparison
equal
deleted
inserted
replaced
18898:856960173630 | 18899:d8ff607ef721 |
---|---|
333 | 333 |
334 repo.ui.debug(" checking for directory renames\n") | 334 repo.ui.debug(" checking for directory renames\n") |
335 | 335 |
336 # generate a directory move map | 336 # generate a directory move map |
337 d1, d2 = c1.dirs(), c2.dirs() | 337 d1, d2 = c1.dirs(), c2.dirs() |
338 d1.add('') | 338 d1.addpath('/') |
339 d2.add('') | 339 d2.addpath('/') |
340 invalid = set() | 340 invalid = set() |
341 dirmove = {} | 341 dirmove = {} |
342 | 342 |
343 # examine each file copy for a potential directory move, which is | 343 # examine each file copy for a potential directory move, which is |
344 # when all the files in a directory are moved to a new directory | 344 # when all the files in a directory are moved to a new directory |