New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitcc fails on rebase #60

Open
djraags opened this Issue Jul 20, 2015 · 7 comments

Comments

Projects
None yet
5 participants
@djraags

djraags commented Jul 20, 2015

Hi,

While using gitcc rebase, i get this below error, Any idea what could cause this.

cleartool lsh -fmt %o%m|%Nd|%u|%En|%Vn|%Nc\n -recurse .
Traceback (most recent call last):
File "../gitcc", line 48, in
main()
File "../gitcc", line 14, in main
return invoke(cmd, args)
File "../gitcc", line 38, in invoke
cmd.main(_args)
File "h:\Tools\git-cc-master\git-cc-master\rebase.py", line 43, in main
history = getHistory(since)
File "h:\Tools\git-cc-master\git-cc-master\rebase.py", line 90, in getHistory
return cc_exec(lsh)
File "h:\Tools\git-cc-master\git-cc-master\common.py", line 50, in cc_exec
return popen('cleartool', cmd, CC_DIR, *_args)
File "h:\Tools\git-cc-master\git-cc-master\common.py", line 62, in popen
raise Exception(decodeString(encoding, stderr + stdout))
Exception: cleartool: Error: Not an object in a vob: ".".

Thanks,
Raghav

@hitenc

This comment has been minimized.

Show comment
Hide comment
@hitenc

hitenc Jul 20, 2015

It seesms gitcc is run against a view-private file. Identify that file and remove. Then try again

hitenc commented Jul 20, 2015

It seesms gitcc is run against a view-private file. Identify that file and remove. Then try again

@charleso

This comment has been minimized.

Show comment
Hide comment
@charleso

charleso Jul 20, 2015

Owner

@djraags What path did you specify on git-cc init? That's being used to run cleartool lsh, but it looks like you've used . which is incorrect - it should be an absolute path.

Owner

charleso commented Jul 20, 2015

@djraags What path did you specify on git-cc init? That's being used to run cleartool lsh, but it looks like you've used . which is incorrect - it should be an absolute path.

@djraags

This comment has been minimized.

Show comment
Hide comment
@djraags

djraags Jul 21, 2015

Charleso, i did give abs path. here is the snapshot of commands i have tried.

KGF684@KGF684-02 /h/Tools/git-cc-master/git-cc-master
$ cd framework/

KGF684@KGF684-02 /h/Tools/git-cc-master/git-cc-master/framework
$ ls

KGF684@KGF684-02 /h/Tools/git-cc-master/git-cc-master/framework
$ git init
Initialized empty Git repository in h:/Tools/git-cc-master/git-cc-master/framewo
rk/.git/

KGF684@KGF684-02 /h/Tools/git-cc-master/git-cc-master/framework (master)
$ ../gitcc init /c/C
CC_Control/ CSR_uEnergy_SDK-2.4.3.26/ ca
CC_Snapshots/ Convert/ cygwin/

KGF684@KGF684-02 /h/Tools/git-cc-master/git-cc-master/framework (master)
$ ../gitcc init /c/CC_Snapshots/KGF684_view9/

git config core.autocrlf false

KGF684@KGF684-02 /h/Tools/git-cc-master/git-cc-master/framework (master)
$ ../gitcc rebase

git ls-files --modified
cleartool update
git log -n 1 --pretty=format:%ai master_cc
cleartool ls -recurse -short .
Traceback (most recent call last):
File "../gitcc", line 48, in
main()
File "../gitcc", line 14, in main
return invoke(cmd, args)
File "../gitcc", line 38, in invoke
cmd.main(_args)
File "h:\Tools\git-cc-master\git-cc-master\rebase.py", line 38, in main
cache.start()
File "h:\Tools\git-cc-master\git-cc-master\cache.py", line 22, in start
self.initial()
File "h:\Tools\git-cc-master\git-cc-master\cache.py", line 32, in initial
self.read(cc_exec(ls))
File "h:\Tools\git-cc-master\git-cc-master\common.py", line 50, in cc_exec
return popen('cleartool', cmd, CC_DIR, *_args)
File "h:\Tools\git-cc-master\git-cc-master\common.py", line 62, in popen
raise Exception(decodeString(encoding, stderr + stdout))
Exception: cleartool: Error: Pathname is not within a VOB: "."

djraags commented Jul 21, 2015

Charleso, i did give abs path. here is the snapshot of commands i have tried.

KGF684@KGF684-02 /h/Tools/git-cc-master/git-cc-master
$ cd framework/

KGF684@KGF684-02 /h/Tools/git-cc-master/git-cc-master/framework
$ ls

KGF684@KGF684-02 /h/Tools/git-cc-master/git-cc-master/framework
$ git init
Initialized empty Git repository in h:/Tools/git-cc-master/git-cc-master/framewo
rk/.git/

KGF684@KGF684-02 /h/Tools/git-cc-master/git-cc-master/framework (master)
$ ../gitcc init /c/C
CC_Control/ CSR_uEnergy_SDK-2.4.3.26/ ca
CC_Snapshots/ Convert/ cygwin/

KGF684@KGF684-02 /h/Tools/git-cc-master/git-cc-master/framework (master)
$ ../gitcc init /c/CC_Snapshots/KGF684_view9/

git config core.autocrlf false

KGF684@KGF684-02 /h/Tools/git-cc-master/git-cc-master/framework (master)
$ ../gitcc rebase

git ls-files --modified
cleartool update
git log -n 1 --pretty=format:%ai master_cc
cleartool ls -recurse -short .
Traceback (most recent call last):
File "../gitcc", line 48, in
main()
File "../gitcc", line 14, in main
return invoke(cmd, args)
File "../gitcc", line 38, in invoke
cmd.main(_args)
File "h:\Tools\git-cc-master\git-cc-master\rebase.py", line 38, in main
cache.start()
File "h:\Tools\git-cc-master\git-cc-master\cache.py", line 22, in start
self.initial()
File "h:\Tools\git-cc-master\git-cc-master\cache.py", line 32, in initial
self.read(cc_exec(ls))
File "h:\Tools\git-cc-master\git-cc-master\common.py", line 50, in cc_exec
return popen('cleartool', cmd, CC_DIR, *_args)
File "h:\Tools\git-cc-master\git-cc-master\common.py", line 62, in popen
raise Exception(decodeString(encoding, stderr + stdout))
Exception: cleartool: Error: Pathname is not within a VOB: "."

@djraags

This comment has been minimized.

Show comment
Hide comment
@djraags

djraags Jul 21, 2015

@hitenc : I dont have any private files, even than i see this error.

djraags commented Jul 21, 2015

@hitenc : I dont have any private files, even than i see this error.

@charleso

This comment has been minimized.

Show comment
Hide comment
@charleso

charleso Jul 21, 2015

Owner

@djraags Hmm. I might be mis-reading, but did you type gitcc init twice?

In any case what's in your .gitcc file under the clearcase flag? Try switching to that directory and running cleartool lshistory manually. That's all git-cc is trying to do, so I suspect something is wrong with the configuration.

Owner

charleso commented Jul 21, 2015

@djraags Hmm. I might be mis-reading, but did you type gitcc init twice?

In any case what's in your .gitcc file under the clearcase flag? Try switching to that directory and running cleartool lshistory manually. That's all git-cc is trying to do, so I suspect something is wrong with the configuration.

@rohinigajawada

This comment has been minimized.

Show comment
Hide comment
@rohinigajawada

rohinigajawada Jul 20, 2017

Hi,

Did you complete the migration of CC to GIT using this.

Need help in migrating clearcase to GIT using this git-cc

~Roh

rohinigajawada commented Jul 20, 2017

Hi,

Did you complete the migration of CC to GIT using this.

Need help in migrating clearcase to GIT using this git-cc

~Roh

@amousa1968

This comment has been minimized.

Show comment
Hide comment
@amousa1968

amousa1968 Oct 8, 2017

Yes I did and I scripted it in bash script. Therefore you need few things to have before migration. 1- need to have the list of items of the configspec for the vob, then the elements, and Release tip labels.

Run the script you will be able to migrate from CC to Git. I am free to take on the next project to migrate if your company is looking for consultant. Message me.

amousa1968 commented Oct 8, 2017

Yes I did and I scripted it in bash script. Therefore you need few things to have before migration. 1- need to have the list of items of the configspec for the vob, then the elements, and Release tip labels.

Run the script you will be able to migrate from CC to Git. I am free to take on the next project to migrate if your company is looking for consultant. Message me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment