Mageia Bugzilla – Attachment 9428 Details for
Bug 20849
mercurial new security issue fixed upstream in 4.1.3 (CVE-2017-9462)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
testing procedure
mercurialCLI.txt (text/plain), 2.99 KB, created by
Herman Viaene
on 2017-06-19 13:25:10 CEST
(
hide
)
Description:
testing procedure
Filename:
MIME Type:
Creator:
Herman Viaene
Created:
2017-06-19 13:25:10 CEST
Size:
2.99 KB
patch
obsolete
>$ hg version >Mercurial Distributed SCM (version 3.1.1) >(see http://mercurial.selenic.com for more information) > >Copyright (C) 2005-2014 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. > >mkdir tmp/repo >tmp exists on this machine > >$ cd tmp/repo/ > >hg init > >$ ls -a >./ ../ .hg/ > >$ hg clone http://www.selenic.com/repo/hello my-hello >warning: selenic.com certificate with fingerprint 2f:62:10:92:45:84:50:47:43:d2:ca:5a:3c:24:f5:13:63:a8:8a:1a not verified (check hostfingerprints or web.cacerts config setting) >real URL is https://selenic.com/repo/hello >requesting all changes >adding changesets >adding manifests >adding file changes >added 2 changesets with 2 changes to 2 files >updating to branch default >2 files updated, 0 files merged, 0 files removed, 0 files unresolved > >$ ls -a my-hello/ >./ ../ hello.c .hg/ Makefile > >hg clone my-hello my-hello-share >updating to branch default >2 files updated, 0 files merged, 0 files removed, 0 files unresolved > >$ cd my-hello-share > >$ hg -q tip >1:82e55d328c8c > >$ cd .. > >$ hg clone my-hello my-hello-new-output >updating to branch default >2 files updated, 0 files merged, 0 files removed, 0 files unresolved > >$ cd my-hello-new-output > >added new printf command in hello.c > >$ hg st >M hello.c > >$ hg diff >diff -r 82e55d328c8c hello.c >--- a/hello.c Fri Aug 26 01:21:28 2005 -0700 >+++ b/hello.c Mon Jun 19 11:44:42 2017 +0200 >@@ -12,5 +12,6 @@ > int main(int argc, char **argv) > { > printf("hello, world!\n"); >+ printf("sure am glad I'm using Mercurial!\n"); > return 0; > } > >hg revert hello.c > >$ hg st >? hello.c.orig > >$ mv hello.c.orig hello.c >mv: 'hello.c' overwrite? y > >$ hg st >M hello.c > >$ hg ci >added "Complicated" as comments > >$ hg st >$ hg par >changeset: 2:14ef4dc9e052 >tag: tip >user: tester5 <hviaene@gmail.com> >date: Mon Jun 19 11:52:09 2017 +0200 >summary: Complicated > >$ cd ../my-hello-share >$ hg pull ../my-hello-new-output >pulling from ../my-hello-new-output >searching for changes >adding changesets >adding manifests >adding file changes >added 1 changesets with 1 changes to 1 files >(run 'hg update' to get a working copy) > >$ hg up >1 files updated, 0 files merged, 0 files removed, 0 files unresolved > >$ hg pull ../my-hello-new-output >pulling from ../my-hello-new-output >searching for changes >no changes found > >$ hg push ../my-hello-new-output >pushing to ../my-hello-new-output >searching for changes >no changes found > >$ hg export tip ># HG changeset patch ># User tester5 <hviaene@gmail.com> ># Date 1497865929 -7200 ># Mon Jun 19 11:52:09 2017 +0200 ># Node ID 14ef4dc9e0525efc6083a473c2801048bdddd45a ># Parent 82e55d328c8ca4ee16520036c0aaace03a5beb65 >Complicated > >diff -r 82e55d328c8c -r 14ef4dc9e052 hello.c >--- a/hello.c Fri Aug 26 01:21:28 2005 -0700 >+++ b/hello.c Mon Jun 19 11:52:09 2017 +0200 >@@ -12,5 +12,6 @@ > int main(int argc, char **argv) > { > printf("hello, world!\n"); >+ printf("sure am glad I'm using Mercurial!\n"); > return 0; > }
$ hg version Mercurial Distributed SCM (version 3.1.1) (see http://mercurial.selenic.com for more information) Copyright (C) 2005-2014 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. mkdir tmp/repo tmp exists on this machine $ cd tmp/repo/ hg init $ ls -a ./ ../ .hg/ $ hg clone http://www.selenic.com/repo/hello my-hello warning: selenic.com certificate with fingerprint 2f:62:10:92:45:84:50:47:43:d2:ca:5a:3c:24:f5:13:63:a8:8a:1a not verified (check hostfingerprints or web.cacerts config setting) real URL is https://selenic.com/repo/hello requesting all changes adding changesets adding manifests adding file changes added 2 changesets with 2 changes to 2 files updating to branch default 2 files updated, 0 files merged, 0 files removed, 0 files unresolved $ ls -a my-hello/ ./ ../ hello.c .hg/ Makefile hg clone my-hello my-hello-share updating to branch default 2 files updated, 0 files merged, 0 files removed, 0 files unresolved $ cd my-hello-share $ hg -q tip 1:82e55d328c8c $ cd .. $ hg clone my-hello my-hello-new-output updating to branch default 2 files updated, 0 files merged, 0 files removed, 0 files unresolved $ cd my-hello-new-output added new printf command in hello.c $ hg st M hello.c $ hg diff diff -r 82e55d328c8c hello.c --- a/hello.c Fri Aug 26 01:21:28 2005 -0700 +++ b/hello.c Mon Jun 19 11:44:42 2017 +0200 @@ -12,5 +12,6 @@ int main(int argc, char **argv) { printf("hello, world!\n"); + printf("sure am glad I'm using Mercurial!\n"); return 0; } hg revert hello.c $ hg st ? hello.c.orig $ mv hello.c.orig hello.c mv: 'hello.c' overwrite? y $ hg st M hello.c $ hg ci added "Complicated" as comments $ hg st $ hg par changeset: 2:14ef4dc9e052 tag: tip user: tester5 <hviaene@gmail.com> date: Mon Jun 19 11:52:09 2017 +0200 summary: Complicated $ cd ../my-hello-share $ hg pull ../my-hello-new-output pulling from ../my-hello-new-output searching for changes adding changesets adding manifests adding file changes added 1 changesets with 1 changes to 1 files (run 'hg update' to get a working copy) $ hg up 1 files updated, 0 files merged, 0 files removed, 0 files unresolved $ hg pull ../my-hello-new-output pulling from ../my-hello-new-output searching for changes no changes found $ hg push ../my-hello-new-output pushing to ../my-hello-new-output searching for changes no changes found $ hg export tip # HG changeset patch # User tester5 <hviaene@gmail.com> # Date 1497865929 -7200 # Mon Jun 19 11:52:09 2017 +0200 # Node ID 14ef4dc9e0525efc6083a473c2801048bdddd45a # Parent 82e55d328c8ca4ee16520036c0aaace03a5beb65 Complicated diff -r 82e55d328c8c -r 14ef4dc9e052 hello.c --- a/hello.c Fri Aug 26 01:21:28 2005 -0700 +++ b/hello.c Mon Jun 19 11:52:09 2017 +0200 @@ -12,5 +12,6 @@ int main(int argc, char **argv) { printf("hello, world!\n"); + printf("sure am glad I'm using Mercurial!\n"); return 0; }
View Attachment As Raw
Actions:
View
Attachments on
bug 20849
: 9428