Merge branch 'master' into tor
This commit is contained in:
commit
24593aaa32
4 changed files with 25 additions and 11 deletions
|
@ -10,6 +10,10 @@ git-annex (6.20161119) UNRELEASED; urgency=medium
|
||||||
largerthan, mimetype, and smallerthan; the first two always failed
|
largerthan, mimetype, and smallerthan; the first two always failed
|
||||||
to match, and the latter always matched.
|
to match, and the latter always matched.
|
||||||
* Relicense 5 source files that are not part of the webapp from AGPL to GPL.
|
* Relicense 5 source files that are not part of the webapp from AGPL to GPL.
|
||||||
|
* map: Run xdot if it's available in PATH. On OSX, the dot command
|
||||||
|
does not support graphical display, while xdot does.
|
||||||
|
* Debian: xdot is a better interactive viewer than dot, so Suggest
|
||||||
|
xdot, rather than graphviz.
|
||||||
|
|
||||||
-- Joey Hess <id@joeyh.name> Mon, 21 Nov 2016 11:27:50 -0400
|
-- Joey Hess <id@joeyh.name> Mon, 21 Nov 2016 11:27:50 -0400
|
||||||
|
|
||||||
|
|
|
@ -47,15 +47,25 @@ start = do
|
||||||
liftIO $ writeFile file (drawMap rs trustmap umap)
|
liftIO $ writeFile file (drawMap rs trustmap umap)
|
||||||
next $ next $
|
next $ next $
|
||||||
ifM (Annex.getState Annex.fast)
|
ifM (Annex.getState Annex.fast)
|
||||||
( do
|
( runViewer file []
|
||||||
showLongNote $ "left map in " ++ file
|
, runViewer file
|
||||||
return True
|
[ ("xdot", [File file])
|
||||||
, do
|
, ("dot", [Param "-Tx11", File file])
|
||||||
showLongNote $ "running: dot -Tx11 " ++ file
|
]
|
||||||
showOutput
|
|
||||||
liftIO $ boolSystem "dot" [Param "-Tx11", File file]
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
runViewer :: FilePath -> [(String, [CommandParam])] -> Annex Bool
|
||||||
|
runViewer file [] = do
|
||||||
|
showLongNote $ "left map in " ++ file
|
||||||
|
return True
|
||||||
|
runViewer file ((c, ps):rest) = ifM (liftIO $ inPath c)
|
||||||
|
( do
|
||||||
|
showLongNote $ "running: " ++ c ++ unwords (toCommand ps)
|
||||||
|
showOutput
|
||||||
|
liftIO $ boolSystem c ps
|
||||||
|
, runViewer file rest
|
||||||
|
)
|
||||||
|
|
||||||
{- Generates a graph for dot(1). Each repository, and any other uuids
|
{- Generates a graph for dot(1). Each repository, and any other uuids
|
||||||
- (except for dead ones), are displayed as a node, and each of its
|
- (except for dead ones), are displayed as a node, and each of its
|
||||||
- remotes is represented as an edge pointing at the node for the remote.
|
- remotes is represented as an edge pointing at the node for the remote.
|
||||||
|
|
2
debian/control
vendored
2
debian/control
vendored
|
@ -112,7 +112,7 @@ Recommends:
|
||||||
nocache,
|
nocache,
|
||||||
aria2,
|
aria2,
|
||||||
Suggests:
|
Suggests:
|
||||||
graphviz,
|
xdot,
|
||||||
bup,
|
bup,
|
||||||
tahoe-lafs,
|
tahoe-lafs,
|
||||||
libnss-mdns,
|
libnss-mdns,
|
||||||
|
|
|
@ -10,8 +10,8 @@ git annex map
|
||||||
|
|
||||||
Helps you keep track of your repositories, and the connections between them,
|
Helps you keep track of your repositories, and the connections between them,
|
||||||
by going out and looking at all the ones it can get to, and generating a
|
by going out and looking at all the ones it can get to, and generating a
|
||||||
Graphviz file displaying it all. If the `dot` command is available, it is
|
Graphviz file displaying it all. If the `xdot` or `dot` command is available,
|
||||||
used to display the file to your screen (using x11 backend).
|
it is used to display the file to your screen.
|
||||||
|
|
||||||
This command only connects to hosts that the host it's run on can
|
This command only connects to hosts that the host it's run on can
|
||||||
directly connect to. It does not try to tunnel through intermediate hosts.
|
directly connect to. It does not try to tunnel through intermediate hosts.
|
||||||
|
@ -37,7 +37,7 @@ on that host.
|
||||||
|
|
||||||
* `--fast`
|
* `--fast`
|
||||||
|
|
||||||
Disable using `dot` to display the generated Graphviz file.
|
Don't display the generated Graphviz file, but save it for later use.
|
||||||
|
|
||||||
# SEE ALSO
|
# SEE ALSO
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue