version: print EdenSCM instead of Mercurial

Summary: Per team discussion.

Reviewed By: singhsrb

Differential Revision: D23719401

fbshipit-source-id: a1e9a1e9a10369c307413354054a65e6520d13e5
This commit is contained in:
Jun Wu 2020-09-15 21:02:09 -07:00 committed by Facebook GitHub Bot
parent ecf88cd4a2
commit 2abf0ada42
2 changed files with 2 additions and 16 deletions

View File

@ -10,16 +10,7 @@ use super::Result;
use super::IO; use super::IO;
pub fn run(_opts: NoOpts, io: &mut IO) -> Result<u8> { pub fn run(_opts: NoOpts, io: &mut IO) -> Result<u8> {
io.write(format!( io.write(format!("EdenSCM {}\n", ::version::VERSION))?;
r#"Mercurial Distributed SCM (version {})
(see https://mercurial-scm.org for more information)
Copyright (C) 2005-2017 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.
"#,
::version::VERSION
))?;
Ok(0) Ok(0)
} }

View File

@ -82,12 +82,7 @@ issue1829: wrong indentation
$ export FAKEPATH $ export FAKEPATH
$ echo '%include $FAKEPATH/no-such-file' > $HGRC $ echo '%include $FAKEPATH/no-such-file' > $HGRC
$ hg version $ hg version
Mercurial Distributed SCM (version *) (glob) EdenSCM * (glob)
(see https://mercurial-scm.org for more information)
Copyright (C) 2005-* Matt Mackall and others (glob)
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ unset FAKEPATH $ unset FAKEPATH
make sure global options given on the cmdline take precedence make sure global options given on the cmdline take precedence