Removing a file is not regarded a change?

Paul Franz theandromedan at gmail.com
Thu Jan 12 23:18:31 UTC 2017


Actually to me it make perfect sense. You are not changing any files by removing them. You are changing a directory when removing file/directory but not the file itself.

Paul Franz
Twitter: PaulFranz
"May the Lord Grant You Extra Innings"


> On Jan 12, 2017, at 1:11 PM, Dr Rainer Woitok <rainer.woitok at gmail.com> wrote:
> 
> 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
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial




More information about the Mercurial mailing list