编写Wiki应用程序时存储版本控制的最佳方法是什么?

时间:2020-12-27 20:07:21

I'm writing a wiki application which needs searchable version conrol. What's the best data model for this?

我正在编写一个需要搜索版本控制的wiki应用程序。什么是最好的数据模型?

I'm writing it in Django, not that that matters much.

我在Django中写它,而不是那么重要。

4 个解决方案

#1


Let me suggest you not implement version control, but make use of one of the existing implementations. Version control is a lot of work to implement well, and a lot of bother to the user if not implemented well.

我建议您不要实现版本控制,而是使用其中一个现有实现。版本控制是很多工作要很好地实现,如果没有很好地实现,很多用户会感到烦恼。

See, for example, how ikiwiki does it: it has plugins to abstract away the version control system and supports several, so the user may choose.

例如,请参阅ikiwiki如何做到这一点:它有插件来抽象出版本控制系统并支持几个,因此用户可以选择。

#2


I'll add svnwiki to the list en.wikipedia.org/wiki/Svnwiki

我将svnwiki添加到列表en.wikipedia.org/wiki/Svnwiki

#3


Basically, what you're asking is "how can I implement version control." There are several models for this but the first question to ask is "why are you building a wiki instead of using one of the zillions of existing implementations?"

基本上,您要问的是“我该如何实现版本控制”。有几个模型,但第一个问题是“为什么要构建一个wiki而不是使用现有实现中的一个?”

#4


If you're looking for a wiki with source code version control written in python I'd highly recommend trac,

如果你正在寻找一个用python编写的源代码版本控制的wiki,我强烈推荐trac,

http://trac.edgewall.org/

I'm not sure if they use django, though.

不过,我不确定他们是否使用django。

If you're looking instead for a wiki with a built in Document Management System, I have designed and built one (in bash) for my office. As Charlie mentions there is any number of ways to implement this and your implementation probably depends most on how your office operates. If you'd like a lengthy description of how our system works I'd be glad to detail it - just leave a comment and I'll edit this post.

如果您正在寻找带有内置文档管理系统的wiki,我已经为我的办公室设计并构建了一个(用bash)。正如查理所提到的,有很多方法可以实现这一点,而您的实施可能主要取决于您的办公室如何运作。如果你想详细描述我们的系统如何工作,我很乐意详细说明 - 只需发表评论,我就会编辑这篇文章。

#1


Let me suggest you not implement version control, but make use of one of the existing implementations. Version control is a lot of work to implement well, and a lot of bother to the user if not implemented well.

我建议您不要实现版本控制,而是使用其中一个现有实现。版本控制是很多工作要很好地实现,如果没有很好地实现,很多用户会感到烦恼。

See, for example, how ikiwiki does it: it has plugins to abstract away the version control system and supports several, so the user may choose.

例如,请参阅ikiwiki如何做到这一点:它有插件来抽象出版本控制系统并支持几个,因此用户可以选择。

#2


I'll add svnwiki to the list en.wikipedia.org/wiki/Svnwiki

我将svnwiki添加到列表en.wikipedia.org/wiki/Svnwiki

#3


Basically, what you're asking is "how can I implement version control." There are several models for this but the first question to ask is "why are you building a wiki instead of using one of the zillions of existing implementations?"

基本上,您要问的是“我该如何实现版本控制”。有几个模型,但第一个问题是“为什么要构建一个wiki而不是使用现有实现中的一个?”

#4


If you're looking for a wiki with source code version control written in python I'd highly recommend trac,

如果你正在寻找一个用python编写的源代码版本控制的wiki,我强烈推荐trac,

http://trac.edgewall.org/

I'm not sure if they use django, though.

不过,我不确定他们是否使用django。

If you're looking instead for a wiki with a built in Document Management System, I have designed and built one (in bash) for my office. As Charlie mentions there is any number of ways to implement this and your implementation probably depends most on how your office operates. If you'd like a lengthy description of how our system works I'd be glad to detail it - just leave a comment and I'll edit this post.

如果您正在寻找带有内置文档管理系统的wiki,我已经为我的办公室设计并构建了一个(用bash)。正如查理所提到的,有很多方法可以实现这一点,而您的实施可能主要取决于您的办公室如何运作。如果你想详细描述我们的系统如何工作,我很乐意详细说明 - 只需发表评论,我就会编辑这篇文章。