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;
pub fn run(_opts: NoOpts, io: &mut IO) -> Result<u8> {
io.write(format!(
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
))?;
io.write(format!("EdenSCM {}\n", ::version::VERSION))?;
Ok(0)
}

View File

@ -82,12 +82,7 @@ issue1829: wrong indentation
$ export FAKEPATH
$ echo '%include $FAKEPATH/no-such-file' > $HGRC
$ hg version
Mercurial Distributed SCM (version *) (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.
EdenSCM * (glob)
$ unset FAKEPATH
make sure global options given on the cmdline take precedence