Bug#645965: mr: Can't register local git repo

2011-10-20 Thread John Eikenberry
Joey Hess wrote:

 John Eikenberry wrote:
  I was trying to register a git repo that exist only locally and received the
  error.
  
  mr: cannot determine git url
  
  Its easy to reproduce, just create a new git repo...
  $ mkdir tmp; cd tmp
  $ git init
  Try to register it with mr...
  $ mr register
  mr: cannot determine git url
  $ echo $?
  1
  
  I have several other repos already registered with mr which all work fine.
  Though they are all hg based (I'm switching to git though).
 
 There is no origin url for the repository. mr register could configure it
 with a dummy checkout command:
 
 [tmp]
 checkout = no url known for this repository
 
 But then what if someone runs mr on a repository that has no origin url,
 but does have some other remote url? It would be surprising for the above to
 result, but mr can't go guessing about which other url to use in such a
 case. So I think it's better that mr register not try to support your
 case.

I would have thought that with the connections to the VCS-Home project or just
in general this would be a more common setup. Having a repo with no remotes is
one of the nice things about DVCs. But no matter.

Is there any mr workaround to get it working with a local-only repo? Or is my
best option just adding a dummy url entry to my .git/config?

-- 

John Eikenberry
[ j...@zhar.net - http://zhar.net ]
[ PGP public key @ http://zhar.net/jae_at_zhar_net.gpg ]

Perfection is attained, not when no more can be added, but when no more
 can be removed. -- Antoine de Saint-Exupery


signature.asc
Description: Digital signature


Bug#645965: mr: Can't register local git repo

2011-10-20 Thread Joey Hess
John Eikenberry wrote:
 I would have thought that with the connections to the VCS-Home project or just
 in general this would be a more common setup. Having a repo with no remotes is
 one of the nice things about DVCs. But no matter.
 
 Is there any mr workaround to get it working with a local-only repo? Or is my
 best option just adding a dummy url entry to my .git/config?

An empty stanza like I showed in .mrconfig will work fine, it's just
that I don't see a good way to mr register to guess you want that configuration.

-- 
see shy jo


signature.asc
Description: Digital signature


Bug#645965: mr: Can't register local git repo

2011-10-19 Thread John Eikenberry
Package: mr
Version: 1.05
Severity: normal


I was trying to register a git repo that exist only locally and received the
error.

mr: cannot determine git url

Its easy to reproduce, just create a new git repo...
$ mkdir tmp; cd tmp
$ git init
Try to register it with mr...
$ mr register
mr: cannot determine git url
$ echo $?
1

I have several other repos already registered with mr which all work fine.
Though they are all hg based (I'm switching to git though).


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

mr depends on no packages.

Versions of packages mr recommends:
ii  libhtml-parser-perl  3.68-1+b1
ii  libwww-perl  6.02-1   
ii  perl 5.12.4-6 

Versions of packages mr suggests:
pn  bzr none 
pn  curl7.21.7-3   
pn  cvs none 
pn  darcs   none 
pn  fossil  none 
pn  git [git-core]  1:1.7.6.3-1
pn  liburi-perl 1.59-1 
pn  mercurial   1.9.2-1
pn  subversion  none 

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#645965: mr: Can't register local git repo

2011-10-19 Thread Joey Hess
John Eikenberry wrote:
 I was trying to register a git repo that exist only locally and received the
 error.
 
 mr: cannot determine git url
 
 Its easy to reproduce, just create a new git repo...
 $ mkdir tmp; cd tmp
 $ git init
 Try to register it with mr...
 $ mr register
 mr: cannot determine git url
 $ echo $?
 1
 
 I have several other repos already registered with mr which all work fine.
 Though they are all hg based (I'm switching to git though).

There is no origin url for the repository. mr register could configure it
with a dummy checkout command:

[tmp]
checkout = no url known for this repository

But then what if someone runs mr on a repository that has no origin url,
but does have some other remote url? It would be surprising for the above to
result, but mr can't go guessing about which other url to use in such a
case. So I think it's better that mr register not try to support your
case.

-- 
see shy jo


signature.asc
Description: Digital signature