Source

repoman / tests / output / clone.py.out

Full commit
Clone without branch, failure
abort: at least one branch must be specified

Clone with solution specified twice, failure
abort: please specify just one solution

Clone empty and solution, failure
abort: exactly one of --solution, --module, and --empty must be specified

Clone modules and empty, failure
abort: exactly one of --solution, --module, and --empty must be specified

Clone destination already exists, failure
abort: destination "../forest1" already exists

Clone non-forest, failure
abort: source is not a repository forest

Clone non-local destination, failure
abort: you must specify a local destination

Clone multiple branches, update to last branch
Cloning modules from ../forest1 into forest2
Cloning metadata
Cloning modules:
~~~ a ~~~
2 files updated, 0 files merged, 0 files removed, 0 files unresolved

~~~ b ~~~
2 files updated, 0 files merged, 0 files removed, 0 files unresolved

~~~ c ~~~
2 files updated, 0 files merged, 0 files removed, 0 files unresolved

~~~ d ~~~
2 files updated, 0 files merged, 0 files removed, 0 files unresolved

Repository forest in directory <TESTROOT>/forest2
Working branch: core/dev
Modules: a, b, c, d
~~~ a ~~~
1 11be38c2b8b7 core/dev

~~~ b ~~~
1 11be38c2b8b7 core/dev

~~~ c ~~~
1 11be38c2b8b7 core/dev

~~~ d ~~~
1 11be38c2b8b7 core/dev


Clone unknown solution, failure
Cloning solution asdfoijaosidj into <TESTROOT>/failtest (from <ROOT>/forest1)
Cloning metadata
abort: solution asdfoijaosidj is unknown
Clone solution sOl3 with non-proper casing
Cloning solution sol3 into <TESTROOT>/clonetest_sol3 (from <ROOT>/forest1)
Cloning metadata
Cloning modules:
~~~ a ~~~

~~~ c ~~~

~~~ d ~~~

solution name: sol3

Clone solution sol3 as sol4, failure
Cloning solution sol4 into <TESTROOT>/clonetest_sol3_sol4 (from <TESTROOT>/clonetest_sol3)
Cloning metadata
abort: source is a clone of the sol3 solution

Clone unknown module, failure
Cloning modules from ../forest1 into failtest
Cloning metadata
Cloning modules:
abort: the following modules are missing: foobarbaz

Clone modules a, c
Cloning modules from ../forest1 into clonetest_mod_ab
Cloning metadata
Cloning modules:
~~~ a ~~~

~~~ c ~~~


Clone solution with specific branch, no update
Cloning solution sol1 into <TESTROOT>/clonetest_sol1 (from <ROOT>/forest1)
Cloning metadata
Cloning modules:
~~~ a ~~~

~~~ b ~~~

~~~ c ~~~

['.hg']

Clone from source with special characters
Cloning solution sol1 into <TESTROOT>/clonetest_s�l2 (from <TESTROOT>/clonetest_s�l1)
Cloning metadata
Cloning modules:
~~~ a ~~~

~~~ b ~~~

~~~ c ~~~

@  changeset:   2
|  user:        Jane Do� <jane.doe@rlyeh.org>
|  summary:     Clone of clonetest_s�l1 (solution sol1)
|
o  changeset:   1
|  user:        Jane Do� <jane.doe@rlyeh.org>
|  summary:     Clone of ../forest1 (solution sol1)
|
o  changeset:   0
   user:        Jane Doe <jane.doe@rlyeh.org>
   summary:     initial forest

['.hg']

Clone with --detach
Current path aliases:
  clone = ../../forest1
  default = ../../forest1
Current path aliases:
  clone = ../clonetest_detpart1
  default = ../../forest1
Current path aliases:
  clone = ../clonetest_detpart1
  default = ../clonetest_detpart1
Current path aliases:
  clone = ../clonetest_detpart1
  default = ../../forest1

Clone without destination
abort: you must specify a destination

Clone with invalid branch casing
abort: Core/Dev: branch names must be lowercase, slash separated strings

Clone with fast-forwarded branch with previous commits
Cloning modules from forest2 into clonetest_ff
Cloning metadata
Cloning modules:
~~~ a ~~~
2 files updated, 0 files merged, 0 files removed, 0 files unresolved

@    changeset:   3:98421a36c5bc
|\   branch:      core/stable
| |  tag:         tip
| |  parent:      2:e86060153511
| |  parent:      1:11be38c2b8b7
| |  user:        Jane Do� <jane.doe@rlyeh.org>
| |  date:        Thu Jan 01 00:00:00 1970 +0000
| |  summary:     merge
| |
| o  changeset:   2:e86060153511
| |  branch:      core/stable
| |  parent:      0:8759c9b85d97
| |  user:        Jane Do� <jane.doe@rlyeh.org>
| |  date:        Thu Jan 01 00:00:00 1970 +0000
| |  summary:     test
| |
o |  changeset:   1:11be38c2b8b7
|/   branch:      core/dev
|    user:        Jane Doe <jane.doe@rlyeh.org>
|    date:        Thu Jan 01 00:00:30 1970 +0000
|    summary:     initial core/dev
|
o  changeset:   0:8759c9b85d97
   branch:      core/stable
   user:        Jane Doe <jane.doe@rlyeh.org>
   date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     initial core/stable

core/dev