confused about diff
Alexis S. L. Carvalho
alexis at cecm.usp.br
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 http://selenic.com/hg/ diff
Traceback (most recent call last):
File "/home/alexis/progs/bin/hg", line 13, in ?
commands.run()
File "/home/alexis/nobackup/scm/hg/installed/lib/python/mercurial/commands.py", line 1289, in run
sys.exit(dispatch(sys.argv[1:]))
File "/home/alexis/nobackup/scm/hg/installed/lib/python/mercurial/commands.py", line 1391, in dispatch
return d()
File "/home/alexis/nobackup/scm/hg/installed/lib/python/mercurial/commands.py", line 1376, in <lambda>
d = lambda: func(u, repo, *args, **cmdoptions)
File "/home/alexis/nobackup/scm/hg/installed/lib/python/mercurial/commands.py", line 578, in diff
for src, abs, rel in walk(repo, pats, opts):
File "/home/alexis/nobackup/scm/hg/installed/lib/python/mercurial/commands.py", line 47, in walk
cwd = repo.getcwd()
AttributeError: httprepository instance has no attribute 'getcwd'
Alexis
More information about the Mercurial
mailing list