Commit Graph

10 Commits

Author SHA1 Message Date
Alexis S. L. Carvalho
8c2c88e404 Make hg add foo; hg mv foo bar work.
- foo will be removed (the user has a copy of its contents in bar)

- bar will not be marked as a copy (there was no committed version of foo).
  We print a warning telling that to the user.

Fixes issue269.
2007-07-03 03:06:40 -03:00
Alexis S. L. Carvalho
a21d4fc96a test-copy2: use status -C instead of debugstate | grep copy 2007-07-03 03:06:40 -03:00
Alexis S. L. Carvalho
64a37442ed dirstate.status: if a file is marked as copied, consider it modified
After a "hg copy --force --after somefile cleanfile", cleanfile
shouldn't be considered clean anymore.
2007-06-21 23:42:06 -03:00
Brendan Cully
86e588eafb Make copy --after work for files that have been hg added. 2007-04-24 18:43:18 -07:00
Benoit Boissinot
e005ffc8c4 switch to the .hg/store layout, fix the tests 2006-12-01 13:34:09 +01:00
Bryan O'Sullivan
5aabaa1c4d The copy tests don't need to invoke cp any longer. 2005-09-14 16:31:03 -07:00
Bryan O'Sullivan
048d850eb8 Fix up copy command to behave more like regular "cp".
In addition to recording changes, copy now updates the working
directory.
2005-09-14 14:29:02 -07:00
Thomas Arendsen Hein
8cd8c08ece Fixed two tests to run with bourne shell. 2005-08-30 19:42:58 +02:00
Thomas Arendsen Hein
50d536fc22 Fixed test-copy2 with only looking at copied files. 2005-08-28 16:37:24 +02:00
mpm@selenic.com
7f0689647a fix some rename/copy bugs
- delete copy information when we update dirstate

  hg was keeping the copy state and marking things as copied on
  multiple commits

- files that are renamed should have no parents

  if you do a rename/copy to an existing file, it should not be marked
  as descending from its previous revisions.

- remove spurious print from filelog.renamed

- add some more copy tests
2005-08-27 22:04:17 -07:00