On Fri, Jul 3, 2009 at 14:52, "Martin v. Löwis" <martin at v.loewis.de> wrote: > > We could add another value in the tuple that specifies the VCS: > > ('CPython', 'branches/release25-maint', '61464', 'svn'). I agree that > > VCSs are not universally the same, but the concept of a revision is > > universal. > > Actually, I think that's not the case. For bzr, the usual way of > identifying a revision is by revision number, which, however, is not > unique within a project, as each branch will use contiguous integers > for numbers. There are also unique identifications - so a bzr revision > has actually two numbers. > > More general, in a DVCS, it is not possible to access the revision being > referred to by such a tuple. For sys.subversion, if [0]=='CPython', then > you could go to svn.python.org. For a DVCS, the revision being > identified may not be publically available, or may not live on a host > that you can infer from your proposed sys.revision. > > For cloned branches, I wonder how sys.revision[1] would be computed. So are you saying we should drop the idea of a revision value altogether, or just embrace the differences and add a sys.mercurial attribute? -Brett -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20090703/fa394dbe/attachment.htm>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4