Skip to content

Commit

Permalink
Updating readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalrymple committed Jan 30, 2017
1 parent 257eef2 commit a99d7f0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ repo.push()
```javascript
const Hg = require('hg-plus');

let combinedRepo = Hg.clone(['my/repository/url1', 'my/repository/url2', 'my/repository/url3']);
let to = {url:'another/url',username:'user2',password:'pass2',path:'path2'};
let combinedRepo = Hg.clone(['my/repository/url1', 'my/repository/url2', 'my/repository/url3'], to);

combinedRepo.commit('I just created a repository from three other repositories!'))
.then(() => repo.push({password: 'myPassword',username:'username'}))
Expand Down Expand Up @@ -111,12 +112,12 @@ Clones a Mercurial repository.

| Argument | Description | Type | Required | Default |
|---------------|-----------------------|----------|----------|-------------------|
| from | | String | Yes | |
| to | | Object | No | |
| from | | String OR Array<String> | Yes | |
| to | | Object | Yes when cloning from many origins, No otherwise | |
| to.url | | String | No | null |
| to.username | | String | No | null |
| to.password | | String | No | null |
| to.path | | String | No | Current Directory |
| to.path | | String | No | Current Directory/<Cloned repo name> |
| done | Callback function | Function | No | null |

| Returns | Description |
Expand Down

0 comments on commit a99d7f0

Please sign in to comment.