confused about diff

Alexis S. L. Carvalho alexis at
Fri Aug 5 17:56:14 CDT 2005

Thus spake Neal Becker:
> I have a repos on my laptop, and one on the desktop.
> I edit a file on the desktop and do a commit.
> On the laptop I do:
> hg diff ssh://laptop/repos
> (nothing)

Note that the arguments to diff are filenames, not a repository, so
mercurial should probably print something like "ssh://laptop/repos: No
such file or directory".

You could specify a different repository using the -R/--repository
global option, but that also doesn't (currently?) work:

$ hg -R diff
Traceback (most recent call last):
  File "/home/alexis/progs/bin/hg", line 13, in ?
  File "/home/alexis/nobackup/scm/hg/installed/lib/python/mercurial/", line 1289, in run
  File "/home/alexis/nobackup/scm/hg/installed/lib/python/mercurial/", line 1391, in dispatch
    return d()
  File "/home/alexis/nobackup/scm/hg/installed/lib/python/mercurial/", line 1376, in <lambda>
    d = lambda: func(u, repo, *args, **cmdoptions)
  File "/home/alexis/nobackup/scm/hg/installed/lib/python/mercurial/", line 578, in diff
    for src, abs, rel in walk(repo, pats, opts):
  File "/home/alexis/nobackup/scm/hg/installed/lib/python/mercurial/", line 47, in walk
    cwd = repo.getcwd()
AttributeError: httprepository instance has no attribute 'getcwd'


More information about the Mercurial mailing list