Mercurial > hg
comparison mercurial/copies.py @ 42344:c361db7a5f14
copies: remove hack for adding root dir to util.dirs object
Differential Revision: https://phab.mercurial-scm.org/D6404
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 17 Apr 2019 21:39:18 -0700 |
parents | 313812cbf4ca |
children | f3d06d37e194 |
comparison
equal
deleted
inserted
replaced
42343:d8e55c0c642c | 42344:c361db7a5f14 |
---|---|
586 | 586 |
587 repo.ui.debug(" checking for directory renames\n") | 587 repo.ui.debug(" checking for directory renames\n") |
588 | 588 |
589 # generate a directory move map | 589 # generate a directory move map |
590 d1, d2 = c1.dirs(), c2.dirs() | 590 d1, d2 = c1.dirs(), c2.dirs() |
591 # Hack for adding '', which is not otherwise added, to d1 and d2 | |
592 d1.addpath('/') | |
593 d2.addpath('/') | |
594 invalid = set() | 591 invalid = set() |
595 dirmove = {} | 592 dirmove = {} |
596 | 593 |
597 # examine each file copy for a potential directory move, which is | 594 # examine each file copy for a potential directory move, which is |
598 # when all the files in a directory are moved to a new directory | 595 # when all the files in a directory are moved to a new directory |