Using webistrano with mercurial

118 views
Skip to first unread message

Joshua Rusch

unread,
Jun 19, 2011, 3:35:22 PM6/19/11
to Webistrano
Hi folks,

I can't seem to get webistrano to clone my mercurial repository, and
I'm wondering if there's a bug, or if I'm missing something obvious
about the way to set things up (which is most likely what's going on
since I'm new to webistrano/capistrano)

Using the lastest git master with Alex Speller's bug fixes (https://
github.com/peritor/webistrano/pull/33), running it with unicorn.

I've got repository set to an https URL
repository https://myhgsite/myhgrepo

scm :mercurial
scm_username myusername
scm_password mypassword
scm_prefer_prompt true

I've played around with :remote_cache :copy and :checkout strategies,
but I keep running into the same issue everywhere. When trying the
copy strategy I've also set copy_dir to a directory that my webistrano
has write permissions to.

Seeing this:

executing locally: "hg log --verbose -r tip --template '{node|
short}'"
*** Could not save revision: Command hg log --verbose -r tip --
template '{node|short}' returned status code 65280

And in the production.log I see: "abort: There is no Mercurial
repository here (.hg not found)!"

Anybody have any ideas? My setup task seems to go past that and run
fine, but not the deploy task. I never see any attempt by webistrano
to clone my repo.

Thanks!

Josh

Joshua Rusch

unread,
Jun 20, 2011, 12:00:47 AM6/20/11
to Webistrano
> Seeing this:
>
> executing locally: "hg log --verbose -r tip --template '{node|
> short}'"
> *** Could not save revision: Command hg log --verbose -r tip --
> template '{node|short}' returned status code 65280
>
> And in the production.log I see: "abort: There is no Mercurial
> repository here (.hg not found)!"
>

So based on the comments here:
https://github.com/capistrano/capistrano/pull/12

It seems I am not doing the set up correctly. As I understand it, I
need a local copy of my repo somewhere already, but I can't figure out
where it goes or how to point to it. I've cloned the repo, tried
pointing repository to it, local_repository to it, copy_dir to it. I'm
missing something.

In any case, as a temporary workaround, I've applied the patch in that
refused pull request to capistrano. Using :checkout it seems to be
cloning the remote repo now.

Any suggestions would be appreciated.

Thanks,

Josh
Reply all
Reply to author
Forward
0 new messages