Git support? (Or using rez-release without VCS?)

213 views
Skip to first unread message

Thorsten Kaufmann

unread,
Apr 12, 2016, 4:45:54 AM4/12/16
to rez-config
Is this a thing yet? We are all git here. I am willing to write a plugin if it is possible and does not exist yet.
I would like to do some testing though.

Cheers,
Thorsten

Thorsten Kaufmann

unread,
Apr 12, 2016, 4:59:22 AM4/12/16
to rez-config
Just saw there is a plugin already, rez-release does not show git, and does not seem to work for me...off to the bat cave

Sebastian Kral

unread,
Apr 12, 2016, 7:52:13 AM4/12/16
to rez-c...@googlegroups.com
There is, but the folder structure needs to be right and there is an outstanding Windows issue with that. See https://github.com/nerdvegas/rez/issues/308
--
You received this message because you are subscribed to the Google Groups "rez-config" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rez-config+...@googlegroups.com.
To post to this group, send email to rez-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/rez-config.
For more options, visit https://groups.google.com/d/optout.


--
Sent from mobile device

Allan Johns

unread,
Apr 12, 2016, 11:42:02 AM4/12/16
to rez-c...@googlegroups.com
Hey Thorsten,

There's definitely git support, we're all git here! It may be a Windows-specific issue. Please contribute back if you fix an issue related to this. We seem to be getting a larger volume of Windows users of late, I'll endeavor to merge in some of the recent Windows contributions.

Thx
A

Thorsten Kaufmann

unread,
Apr 12, 2016, 4:09:14 PM4/12/16
to rez-config
Hey Allan,

thanks for the quick reply. I replied to the issue posted above. Not sure where to discuss something like that. So cross posting here.

I'd like to play with this, as it would be a hard requirement for us. I was wondering what everyone's preferred ways to tackle this would be. Is there a wish for something like sh/pbs or similar to have similar implementations in across the different VCS plugins? Obvious possibilities i currently see:

  • Write something similar that works across platforms (daunting for me, as i do neither OSX nor Linux)
  • Use any of the existing git modules (GitPython, pygit, Dulwich, Gittle, )
  • Replace sh with subprocess calls (or write a thin subprocess based wrapper)
  • ?

As said i'd be willing to spend some time to experiment a little as it would be a requirement for us and i'd like to see that as part of the official distribution should we go for rez. I would just prefer to spend the time on something that works for others.


Cheers,
Thorsten




On Tuesday, April 12, 2016 at 5:42:02 PM UTC+2, allan.johns wrote:
Hey Thorsten,

There's definitely git support, we're all git here! It may be a Windows-specific issue. Please contribute back if you fix an issue related to this. We seem to be getting a larger volume of Windows users of late, I'll endeavor to merge in some of the recent Windows contributions.

Thx
A

On Tue, Apr 12, 2016 at 4:52 AM, Sebastian Kral <ma...@sebastiankral.de> wrote:
There is, but the folder structure needs to be right and there is an outstanding Windows issue with that. See https://github.com/nerdvegas/rez/issues/308


On Tuesday, 12 April 2016, Thorsten Kaufmann <insti...@gmail.com> wrote:
Just saw there is a plugin already, rez-release does not show git, and does not seem to work for me...off to the bat cave

On Tuesday, April 12, 2016 at 10:45:54 AM UTC+2, Thorsten Kaufmann wrote:
Is this a thing yet? We are all git here. I am willing to write a plugin if it is possible and does not exist yet.
I would like to do some testing though.

Cheers,
Thorsten

--
You received this message because you are subscribed to the Google Groups "rez-config" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rez-config+unsubscribe@googlegroups.com.

To post to this group, send email to rez-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/rez-config.
For more options, visit https://groups.google.com/d/optout.

Thorsten Kaufmann

unread,
Apr 13, 2016, 10:55:04 AM4/13/16
to rez-config
I am a bit confused. It seems that there is some subprocess wrapping already. Will have to take a closer look though.

But first: My install does not recognize git whatsoever. Went with the above branch and description. The VCS plugins are all there. Running rez-release --help only mentions SVN and stub though.
And running rez-release in a git based packages does not recognise version control.

Do i need to specifically enable git somewhere?

Cheers,
Thorsten

Allan Johns

unread,
Apr 13, 2016, 12:14:46 PM4/13/16
to rez-c...@googlegroups.com
There's an option to turn on plugin debugging, try:

]$ export REZ_DEBUG_PLUGINS=1
]$ rez -i

If there's an error trying to load the git plugin, this will show it.

A



To unsubscribe from this group and stop receiving emails from it, send an email to rez-config+...@googlegroups.com.
To post to this group, send email to rez-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/rez-config.
For more options, visit https://groups.google.com/d/optout.
--
Sent from mobile device

--
You received this message because you are subscribed to the Google Groups "rez-config" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rez-config+...@googlegroups.com.
To post to this group, send email to rez-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/rez-config.
For more options, visit https://groups.google.com/d/optout.

Thorsten Kaufmann

unread,
Apr 14, 2016, 3:05:16 AM4/14/16
to rez-config
Thanks, so release hook "command" and release vcs "git" fail due to sh. For the record: svn was not loaded because it missed pysvn (which btw. is also not available compiled for windows x64).

Ready to hack away. Thanks!
To unsubscribe from this group and stop receiving emails from it, send an email to rez-config+unsubscribe@googlegroups.com.

To post to this group, send email to rez-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/rez-config.
For more options, visit https://groups.google.com/d/optout.
--
Sent from mobile device

--
You received this message because you are subscribed to the Google Groups "rez-config" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rez-config+...@googlegroups.com.
To post to this group, send email to rez-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/rez-config.
For more options, visit https://groups.google.com/d/optout.

Allan Johns

unread,
Apr 14, 2016, 11:27:05 AM4/14/16
to rez-c...@googlegroups.com
Cheers. Svn has been broken for ages but we don't use it. If and when anyone ever wants it, it'd make sense to port it to whatever sh-like subproc wrapper we have, rather than pysvn.

A


To unsubscribe from this group and stop receiving emails from it, send an email to rez-config+...@googlegroups.com.
To post to this group, send email to rez-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/rez-config.
For more options, visit https://groups.google.com/d/optout.
--
Sent from mobile device

--
You received this message because you are subscribed to the Google Groups "rez-config" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rez-config+...@googlegroups.com.
To post to this group, send email to rez-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/rez-config.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "rez-config" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rez-config+...@googlegroups.com.
To post to this group, send email to rez-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/rez-config.
For more options, visit https://groups.google.com/d/optout.

Andy Nicholas

unread,
Jun 27, 2016, 11:19:54 AM6/27/16
to rez-config
Hi guys,
Sorry to resurrect an old thread, I'm having the same problem. After doing what you suggested (i.e. set REZ_DEBUG_PLUGINS=1) I'm getting the same complaint about "sh" and it says to visit https://pypi.python.org/pypi/pbs to obtain version 0.110 for Windows support. I tried installing that and I get the same error.

Thorsten, did you manage to get anywhere with this?


BTW, I found this old thread back in 2012 where Morné said he'd used GitPython to get it to work:


Is that something that ever got looked at or merged? I've used GitPython a few times and I'm just wondering if it might be a fairly easy thing to get working, as it has a command line mode that I would hope would be able to mimic how "sh" is being used. Maybe...!

Many thanks,
Andy

Andy Nicholas

unread,
Jun 27, 2016, 11:31:31 AM6/27/16
to rez-config
Here's the link to GitPython's command line mode I just mentioned.

http://gitpython.readthedocs.io/en/stable/tutorial.html#using-git-directly

Andy

Allan Johns

unread,
Jun 27, 2016, 11:40:10 AM6/27/16
to rez-c...@googlegroups.com
Hey Andy,

I'd prefer to continue subproc'ing to use git - we were using GitPython (or one of the other flavors) in the past, but it proved quite a bit easier to use the cli interface instead. Also the need to subproc is not specific to rez's use of git either, so if we need to replace sh (and it sounds like we do), porting to GitPython doesn't solve all of that problem.

Thx
A



--

Andy Nicholas

unread,
Jun 27, 2016, 12:17:08 PM6/27/16
to rez-config
Yep okay, no probs. I agree it makes sense to be consistent across the plugins.

Thorsten Kaufmann

unread,
Jul 11, 2016, 5:51:45 AM7/11/16
to rez-config
I forgot to add this here it seems. sh is not really used in the git plugin, only imported and the import breaks. Removing line 7 from git.py solved this for me:

from rez.vendor.sh.sh import git

Cheers,
Thorsten
Reply all
Reply to author
Forward
0 new messages