No response to hg status after init on a new repo
Roger Pate
roger at qxxy.com
Wed Jan 18 01:49:53 UTC 2017
Try a new directory:
$ mkdir new-repo
$ cd new-repo
$ ls -A
$ hg init
$ ls -A
.hg
$ date >file
$ hg status
? file
$ hg add file
$ hg status
A file
$ hg commit -m'message'
$ hg status
$ hg status -A
C file
If you don't get similar results, your hg install or configuration is
broken. (There's a chance something in your ~/.hgrc is not what you
want.)
On Tue, Jan 17, 2017 at 7:09 PM, Harry Putnam <reader at newsguy.com> wrote:
> I fell off using mercurial for a good number of months and it seems
> I've forgotten what ever little bit I had learned.
>
> Starting a new repo and working from the Quick start at:
> https://www.mercurial-scm.org/wiki/QuickStart
>
> It appears to be saying after doing `init' on new collection of
> files. One should create and test an .hgignore file.
>
> The Quck Start (`qs' here after) tells me to test the .hgignore by
> calling `hg status' claims it will `show all unignored files'.
>
> But when I call `hg status' nothing what-so-ever happens.
>
> To recap.... I've called `hg init' on a collection of files from the
> base directory. I've done nothing else (except create .hgignore) but
> when I call `hg status' nothing at all happens.
>
> I thought maybe I'd left an extraneous asterisk (*) in the glob
> section of .hgignore but no... .hgignore contains:
>
> ## editor leavings
> syntax: glob
> *~
> .*~
> *#*
> .*#*
> *.bak
> .*.bak
> .*sw[op]
>
> I tried calling `hg add` and then `hg status'. Still nothing.
>
> I went a bit further and called hg commit -c "" .. it returns `nothing
> is changed'
>
> OK, so I add several new files and called hg status ... no response.
>
> hg commit .. `nothing is changed'
>
> This can't be the expected behavior... can it?
>
> Has mercurial changed its behavior and the qs is just out of date.. or
> is there likely to be something wrong at my end?
>
> cd repo
> find .|wc -l
> 908
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
More information about the Mercurial
mailing list