Hi,

Sorry, I'm out of town on vacation and emailing from my phone, do my
answers will be brief.

Subversion, Perforce, etc. give you the ability to talk to a remote
server and request a single file without having a checkout of the
whole repository. Git does not. With Git, you must have a full clone,
on the local computer (in this case, the Review Board server), in
order to access a particular file. This also means keeping it fully in
sync with origin always.

Because of this limitation in Git, you either need to set up this
clone and point Path to that or you needto use the Raw URL. This is a
mask (similar to the bug URL) that points to a path for a raw file on
cgit/gitweb/etc. This is the easiest, most preferred way. See the help
text under that field in the Repository configuration.

Christian

On Wednesday, February 10, 2010, Kunjal <kunjal.par...@gmail.com> wrote:
> Chris,
>
> Are you saying repository path field in the RB Admin GUI?
> I set it as git://mobcom-git.sj.broadcom.com/git_repos/repo_mydroid/vendor.git
> which is the server path where our repository resides.
>
> What do you mean when you say GIT works only on local paths? How do I
> know developer's local workspace path?
>
> Pl. help. this issue is taking away my sleep !!
>
> Kunjal
>
>
> On Feb 5, 2:48 pm, Christian Hammond <chip...@chipx86.com> wrote:
>> I still need to see the repository Path field to be able to say what's going
>> on. Is it a remote path, or a local path on the filesystem? Git can only
>> operate on local paths.
>>
>> Christian
>>
>> --
>> Christian Hammond - chip...@chipx86.com
>> Review Board -http://www.reviewboard.org
>> VMware, Inc. -http://www.vmware.com
>>
>>
>>
>> On Fri, Feb 5, 2010 at 11:05 AM, Kunjal <kunjal.par...@gmail.com> wrote:
>> > It's failing here in git.py in scmtools folder.
>>
>> > class GitClient:
>> >    def __init__(self, path):
>> >        if not is_exe_in_path('git'):
>> >            # This is technically not the right kind of error, but
>> > it's the
>> >            # pattern we use with all the other tools.
>> >            raise ImportError
>>
>> >        self.path = path
>> >        p = subprocess.Popen(
>> >            ['git', '--git-dir=%s' % self.path, 'config',
>> >                 'core.repositoryformatversion'],
>> >            stderr=subprocess.PIPE,
>> >            stdout=subprocess.PIPE,
>> >            close_fds=(os.name != 'nt')
>> >        )
>> >        contents = p.stdout.read()
>> >        errmsg = p.stderr.read()
>> >        failure = p.wait()
>>
>> >        if failure:
>> >            raise ImportError
>>
>> > On Feb 4, 1:31 pm, Kunjal <kunjal.par...@gmail.com> wrote:
>> > > When I look at the error.log for Apache server, It give me this:
>> > > Am I not Importing some modules?
>>
>> > > Traceback (most recent call last):
>> > >   File "/projects/mob_tools/xampp/1.6.4-brcm-v2/lib/python2.5/site-
>> > > packages/Django-1.1.1-py2.5.egg/django/core/handlers/base.py", line
>> > > 92, in get_response
>> > >     response = callback(request, *callback_args, **callback_kwargs)
>> > >   File "/projects/mob_tools/xampp/1.6.4-brcm-v2/lib/python2.5/site-
>> > > packages/Django-1.1.1-py2.5.egg/django/views/decorators/cache.py",
>> > > line 44, in _wrapped_view_func
>> > >     response = view_func(request, *args, **kwargs)
>> > >   File "/projects/mob_tools/xampp/1.6.4-brcm-v2/lib/python2.5/site-
>> > > packages/Djblets-0.5.5-py2.5.egg/djblets/webapi/decorators.py", line
>> > > 59, in _checklogin
>> > >     response = view_func(request, *args, **kwargs)
>> > >   File "/projects/mob_tools/xampp/1.6.4-brcm-v2/lib/python2.5/site-
>> > > packages/Django-1.1.1-py2.5.egg/django/views/decorators/http.py", line
>> > > 37, in inner
>> > >     return func(request, *args, **kwargs)
>> > >   File "/projects/mob_tools/xampp/1.6.4-brcm-v2/lib/python2.5/site-
>> > > packages/ReviewBoard-1.0.5.1-py2.5.egg/reviewboard/webapi/json.py",
>> > > line 1178, in new_diff
>> > >     form = UploadDiffForm(review_request.repository, form_data,
>> > > request.FILES)
>> > >   File "/projects/mob_tools/xampp/1.6.4-brcm-v2/lib/python2.5/site-
>> > > packages/ReviewBoard-1.0.5.1-py2.5.egg/reviewboard/diffviewer/
>> > > forms.py", line 44, in __init__
>> > >     if self.repository.get_scmtool().get_diffs_use_absolute_paths():
>> > >   File "/projects/mob_tools/xampp/1.6.4-brcm-v2/lib/python2.5/site-
>> > > packages/ReviewBoard-1.0.5.1-py2.5.egg/reviewboard/scmtools/
>> > > models.py", line 43, in get_scmtool
>> > >     return cls(self)
>> > >   File "/projects/mob_tools/xampp/1.6.4-brcm-v2/lib/python2.5/site-
>> > > packages/ReviewBoard-1.0.5.1-py2.5.egg/reviewboard/scmtools/git.py",
>> > > line 23, in __init__
>> > >     self.client = GitClient(repository.path)
>> > >   File "/projects/mob_tools/xampp/1.6.4-brcm-v2/lib/python2.5/site-
>> > > packages/ReviewBoard-1.> ...
>>
>> read more »- Hide quoted text -
>>
>> - Show quoted text -
>
> --
> Want to help the Review Board project? Donate today at 
> http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~----------~----~----~----~------~----~------~--~---
> To unsubscribe from this group, send email to 
> reviewboard+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/reviewboard?hl=en

-- 
-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Reply via email to