equal
deleted
inserted
replaced
8 from node import * |
8 from node import * |
9 from i18n import _ |
9 from i18n import _ |
10 import os, sys, mdiff, bdiff, util, templater, patch |
10 import os, sys, mdiff, bdiff, util, templater, patch |
11 |
11 |
12 revrangesep = ':' |
12 revrangesep = ':' |
|
13 |
|
14 def parseurl(url, revs): |
|
15 '''parse url#branch, returning url, branch + revs''' |
|
16 |
|
17 if '#' not in url: |
|
18 return url, (revs or None) |
|
19 |
|
20 url, rev = url.split('#', 1) |
|
21 return url, revs + [rev] |
13 |
22 |
14 def revpair(repo, revs): |
23 def revpair(repo, revs): |
15 '''return pair of nodes, given list of revisions. second item can |
24 '''return pair of nodes, given list of revisions. second item can |
16 be None, meaning use working dir.''' |
25 be None, meaning use working dir.''' |
17 |
26 |