Commit Graph

14 Commits

Author SHA1 Message Date
Matt Mackall
06d5fbf2a5 copy: handle rename internally
- add rename parameter
- don't collect copied list
- report "moving" rather than "copying"
- remove renamed files
- don't return copied list
- simplify callers
2007-12-07 02:29:55 -06:00
Alexis S. L. Carvalho
bcee2981c6 copy: if destination ends with "/", make sure it's a directory
Fixes issue724.
2007-09-24 19:00:11 -03:00
Alexis S. L. Carvalho
d69c63e916 test-rename: use hg status -C; don't use hg debugstate | grep copy 2007-07-03 03:06:40 -03:00
Thomas Arendsen Hein
7a4d62e035 Removed trailing \n in calls to util.Abort() 2007-06-09 13:25:54 +02:00
Thomas Arendsen Hein
46d0753ec7 Make hg update more verbose by default (issue12)
(including small changes to revert and backout to not show these stats
 with the exception of backout --merge)

Show update stats (unless -q), e.g.:
K files updated, L files merged, M files removed, N files unresolved

Inform the user what to do after a merge:
(branch merge, don't forget to commit)

Inform the user what to do if a branch merge failed:
There are unresolved merges, you can redo the full merge using:
  hg update -C X
  hg merge Y

Inform the user what to do if a working directory merge failed:
There are unresolved merges with locally modified files.
2006-05-02 18:44:02 +02:00
Thomas Arendsen Hein
1bf1db0503 Enable path validation for copy, rename, debugwalk and other canonpath users.
This fixed the last bit of issue134.
Added some tests to test-rename and test-walk.
2006-03-19 14:53:58 +01:00
Robin Farine
954a141878 copy/rename to a removed destination file
When the destination of a copy or rename operation has been
marked for removal, we need to restore it before we overwrite
it with the new content. This also handles the case of
idempotent renames, i.e.

    hg rename "a" "b"
    hg rename "b" "a"
2006-02-28 23:47:40 -08:00
Robin Farine
cd5d5db3e2 transitive copy/rename
Add support for transitive copy or rename operations, e.g.

    hg rename a b
    ... (possibly edit b)
    hg rename b c
    hg commit ...

by actually renaming "b" as "c" while recording a copy of
"a" to "c" and a removal of "a".
2006-02-18 07:37:59 -08:00
Robin Farine
bf07bbbd01 copy & rename can ignore removed source files
As mercurial now distinguishes deleted files from removed files,
we can skip removed source files while copying or renaming.
2006-01-24 13:59:01 +13:00
Robin Farine
76456b288f copy/rename '.' or '..' correctly 2006-01-24 13:57:09 +13:00
Robin Farine
1ad6c4c7e4 fix rename --after 2005-12-01 10:48:35 -06:00
Robin Farine
8870c8c85a avoid to copy more than one file to the same destination file 2005-11-08 10:35:13 -08:00
Robin Farine
af91f5f15b copy & rename don't overwrite unless --force is specified 2005-11-08 10:35:09 -08:00
Robin Farine
7eb6f65c8b generalize copy/rename to handle more than one source directory 2005-11-08 10:35:05 -08:00