Removing a file is not regarded a change?

Dr Rainer Woitok rainer.woitok at gmail.com
Thu Jan 12 18:11:29 UTC 2017


Greetings,

when pulling  a changeset containing  a removed file,  this file  is not
counted in the "added l changesets  with m changes to n files" line.  As
in:

 $ export HGRCPATH= HGPLAINEXCEPT=
 $ hg version
Mercurial Distributed SCM (version 4.0)
(see https://mercurial-scm.org for more information)

Copyright (C) 2005-2016 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 $ cd /tmp
 $ hg init repo
 $ cd repo
 $ touch file
 $ hg commit -Am Add
adding file
 $ cd ..
 $ hg clone repo clone
updating to branch default
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
 $ cd repo
 $ hg rm file
 $ hg commit -Am Remove
 $ cd ..
 $ hg pull -u -R clone
pulling from /tmp/repo
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 0 changes to 0 files
0 files updated, 0 files merged, 1 files removed, 0 files unresolved

Maybe it's not a bug, but the last two lines are at least looking rather
strange ... :-|

Sincerely,
  Rainer


More information about the Mercurial mailing list